Add savedconfig flag
authorCédric Krier <cedk@gentoo.org>
Fri, 29 Dec 2006 23:12:51 +0000 (23:12 +0000)
committerCédric Krier <cedk@gentoo.org>
Fri, 29 Dec 2006 23:12:51 +0000 (23:12 +0000)
Package-Manager: portage-2.1.1-r2

x11-misc/dmenu/ChangeLog
x11-misc/dmenu/Manifest
x11-misc/dmenu/dmenu-1.8-r1.ebuild [new file with mode: 0644]
x11-misc/dmenu/files/digest-dmenu-1.8-r1 [new file with mode: 0644]
x11-misc/dmenu/metadata.xml

index 81cdfa8f2e850fe793fd8755fdab520a020cec52..3a36009a2f2ecaa87cdaed997cec7fe7103df0be 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for x11-misc/dmenu
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.1 2006/12/28 07:25:35 omp Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.2 2006/12/29 23:12:51 cedk Exp $
+
+*dmenu-1.8-r1 (29 Dec 2006)
+
+  29 Dec 2006; Cedric Krier <cedk@gentoo.org> metadata.xml,
+  +dmenu-1.8-r1.ebuild:
+  Add savedconfig flag
 
   28 Dec 2006; David Shakaryan <omp@gentoo.org> +dmenu-1.8.ebuild,
   +metadata.xml:
index 7a9ec6f26916944383ff6e9005508ec93cf42216..931aa0174ff54665ba246a99b961616dc609b9c4 100644 (file)
@@ -1,26 +1,23 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 DIST dmenu-1.8.tar.gz 7729 RMD160 4d25ecdbb5badd4e8123c1e72ba4dee2619e654f SHA1 f6db2a347bf797f35f1661b74486d0e469ef80a9 SHA256 1928dc70ed14216899fafdca598a27aeae7175ff0614d14091ab48d3dd1fc413
+EBUILD dmenu-1.8-r1.ebuild 2131 RMD160 a5eb64e476bfeec0918c4e7e64ba14fdc8665713 SHA1 bf83116cf2f54e5ccbed8c99d5673abb5236108d SHA256 b4b5c5721dd54a6d5d8839acef9383d4dd1b1a20a8a160b4405834122b7f6188
+MD5 dcaf422f0388090712a4b688bb5cff5f dmenu-1.8-r1.ebuild 2131
+RMD160 a5eb64e476bfeec0918c4e7e64ba14fdc8665713 dmenu-1.8-r1.ebuild 2131
+SHA256 b4b5c5721dd54a6d5d8839acef9383d4dd1b1a20a8a160b4405834122b7f6188 dmenu-1.8-r1.ebuild 2131
 EBUILD dmenu-1.8.ebuild 852 RMD160 92cb29816220431e717f4c7aa0e7b2171a4cdbd8 SHA1 8c4f077d2c1c95c5d3f2897fd8390f06e9956c7e SHA256 7a020dd940e066edcd88d7f6517b36dd4aa688d89e25e0de49adad78e3c856df
 MD5 708f6cabf88bd367d7c43c19c0b892c2 dmenu-1.8.ebuild 852
 RMD160 92cb29816220431e717f4c7aa0e7b2171a4cdbd8 dmenu-1.8.ebuild 852
 SHA256 7a020dd940e066edcd88d7f6517b36dd4aa688d89e25e0de49adad78e3c856df dmenu-1.8.ebuild 852
-MISC ChangeLog 313 RMD160 f316afc46a3d13a5ed07bfe6caf00d054554daf2 SHA1 cbe39f1f38b6abaaf318cb2658cadc5a35311602 SHA256 663b40e83b55428508e826d1fe32aa3a750f194c3b7a2374e019d6a30a32b0dd
-MD5 91addea73fe7b3f0e3454c5fa953fef1 ChangeLog 313
-RMD160 f316afc46a3d13a5ed07bfe6caf00d054554daf2 ChangeLog 313
-SHA256 663b40e83b55428508e826d1fe32aa3a750f194c3b7a2374e019d6a30a32b0dd ChangeLog 313
-MISC metadata.xml 265 RMD160 aebf73b9ca0fce3fc0e428f3fc9719893dddfb04 SHA1 fe6b87c6b6e243a570b11cc3cae8b87397cd8b06 SHA256 a8c9f4ab3dcb6e69fe7b8381fe4eeb6748cc9e88c8116b3e34ad75f58198e908
-MD5 c2049a9377a2f825c36ca50f5528f53a metadata.xml 265
-RMD160 aebf73b9ca0fce3fc0e428f3fc9719893dddfb04 metadata.xml 265
-SHA256 a8c9f4ab3dcb6e69fe7b8381fe4eeb6748cc9e88c8116b3e34ad75f58198e908 metadata.xml 265
+MISC ChangeLog 451 RMD160 7a191e9ad5f4ba09a1eedf0bb7aff993ad81fdd0 SHA1 df00b9d3f1eb8e7c938f7a3822c3918d7d7190a5 SHA256 c37ba139b5df5fcf0cc6f707a4888883c1eee6ee9902caa4c9acfdbf158651c9
+MD5 75939485a21f43a27935b713a9b2eed4 ChangeLog 451
+RMD160 7a191e9ad5f4ba09a1eedf0bb7aff993ad81fdd0 ChangeLog 451
+SHA256 c37ba139b5df5fcf0cc6f707a4888883c1eee6ee9902caa4c9acfdbf158651c9 ChangeLog 451
+MISC metadata.xml 362 RMD160 5f550b91126dc9e09be2d8bbdc20eaca796bbc0f SHA1 ef592e4169ca16e31a24d264c480722112b740e2 SHA256 341ef52d92764d360158c96773c3d73939970d958b8dd066204741f43ee7dd92
+MD5 cebc51f16b631fdc38e0f97ffefe8ea4 metadata.xml 362
+RMD160 5f550b91126dc9e09be2d8bbdc20eaca796bbc0f metadata.xml 362
+SHA256 341ef52d92764d360158c96773c3d73939970d958b8dd066204741f43ee7dd92 metadata.xml 362
 MD5 aaa97e88773876b293882d16cbc74ba2 files/digest-dmenu-1.8 223
 RMD160 14f552a44062adc03e902d9b113faeb057c341cd files/digest-dmenu-1.8 223
 SHA256 965399a4a43406b1cef556f99f3fc2c1cd6237c93003db030b4b354226468fac files/digest-dmenu-1.8 223
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.6 (GNU/Linux)
-
-iD8DBQFFk3F7vSApE0uP4UsRAgpeAJ9HRHUyMnH4MxAhYOcnx8RmWrC0sgCcD8Rv
-HZg9J3N0P8dT7pbnCujaPSw=
-=Pbf3
------END PGP SIGNATURE-----
+MD5 aaa97e88773876b293882d16cbc74ba2 files/digest-dmenu-1.8-r1 223
+RMD160 14f552a44062adc03e902d9b113faeb057c341cd files/digest-dmenu-1.8-r1 223
+SHA256 965399a4a43406b1cef556f99f3fc2c1cd6237c93003db030b4b354226468fac files/digest-dmenu-1.8-r1 223
diff --git a/x11-misc/dmenu/dmenu-1.8-r1.ebuild b/x11-misc/dmenu/dmenu-1.8-r1.ebuild
new file mode 100644 (file)
index 0000000..2850154
--- /dev/null
@@ -0,0 +1,78 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/dmenu-1.8-r1.ebuild,v 1.1 2006/12/29 23:12:51 cedk Exp $
+
+inherit toolchain-funcs
+
+DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
+HOMEPAGE="http://suckless.org/view/dynamic+window+manager"
+SRC_URI="http://suckless.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="savedconfig"
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       sed -i \
+               -e "s/.*strip.*//" \
+               Makefile || die "sed failed"
+
+       sed -i \
+               -e "s/CFLAGS = -Os/CFLAGS +=/" \
+               -e "s/LDFLAGS =/LDFLAGS +=/" \
+               config.mk || die "sed failed"
+
+       if use savedconfig; then
+               local conf root
+               for conf in ${PF} ${P} ${PN}; do
+                       for root in "${PORTAGE_CONFIGROOT}" "${ROOT}" /; do
+                               configfile=${root}etc/portage/savedconfig/${conf}.config.h
+                               if [[ -r ${configfile} ]]; then
+                                       elog "Found your ${configfile} and using it."
+                                       cp -f ${configfile} "${S}"/${PN}.h
+                                       return 0
+                               fi
+                       done
+               done
+               ewarn "Could not locate user configfile, so we will save a default one."
+       fi
+}
+
+src_compile() {
+       local msg
+       use savedconfig && msg=", please check the configfile"
+       emake CC=$(tc-getCC) || die "emake failed${msg}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
+
+       insinto /usr/share/${PN}
+       newins ${PN}.h ${PF}.config.h
+
+       dodoc README
+}
+
+pkg_preinst() {
+       mv "${D}"/usr/share/${PN}/${PF}.config.h "${T}"/
+}
+
+pkg_postinst() {
+       if use savedconfig; then
+               local config_dir="${PORTAGE_CONFIGROOT:-${ROOT}}/etc/portage/savedconfig"
+               elog "Saving this build config to ${config_dir}/${PF}.config.h"
+               einfo "Read this ebuild for more info on how to take advantage of this option."
+               mkdir -p "${config_dir}"
+               cp "${T}"/${PF}.config.h "${config_dir}"/${PF}.config.h
+       fi
+       einfo "This ebuild has support for user defined configs"
+       einfo "Please read this ebuild for more details and re-emerge as needed"
+       einfo "if you want to add or remove functionality for ${PN}"
+}
diff --git a/x11-misc/dmenu/files/digest-dmenu-1.8-r1 b/x11-misc/dmenu/files/digest-dmenu-1.8-r1
new file mode 100644 (file)
index 0000000..5bd62ec
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 639cbd07e48e3c89933dc0a79c5afec2 dmenu-1.8.tar.gz 7729
+RMD160 4d25ecdbb5badd4e8123c1e72ba4dee2619e654f dmenu-1.8.tar.gz 7729
+SHA256 1928dc70ed14216899fafdca598a27aeae7175ff0614d14091ab48d3dd1fc413 dmenu-1.8.tar.gz 7729
index 4f943bcf833c5b3c0e76bf6d39e87768d06cb74f..c175f784702aa74b516c4dbae829d1524b9c3a78 100644 (file)
@@ -6,4 +6,8 @@
     <email>omp@gentoo.org</email>
     <name>David Shakaryan</name>
   </maintainer>
+  <maintainer>
+    <email>cedk@gentoo.org</email>
+    <name>Cédric Krier</name>
+  </maintainer>
 </pkgmetadata>