diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-02-24 02:14:28 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-02-24 02:14:28 +0000 |
commit | eb5be8a166e1de8dfc4250968652c9f8753ad515 (patch) | |
tree | b1c030aa037a7279a3198fe8dc3ca0d6d4602d34 | |
parent | Version bump - add ~amd64 - Bugs #71067 #74192 (diff) | |
download | historical-eb5be8a166e1de8dfc4250968652c9f8753ad515.tar.gz historical-eb5be8a166e1de8dfc4250968652c9f8753ad515.tar.bz2 historical-eb5be8a166e1de8dfc4250968652c9f8753ad515.zip |
use built_with_use (bug #83044); tidy
Package-Manager: portage-2.0.51-r15
-rw-r--r-- | app-admin/analog/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/analog/Manifest | 8 | ||||
-rw-r--r-- | app-admin/analog/analog-5.32.ebuild | 34 | ||||
-rw-r--r-- | app-admin/analog/analog-6.0.ebuild | 35 |
4 files changed, 39 insertions, 44 deletions
diff --git a/app-admin/analog/ChangeLog b/app-admin/analog/ChangeLog index 160775487be1..3ba1d1b8db3f 100644 --- a/app-admin/analog/ChangeLog +++ b/app-admin/analog/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/analog # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/ChangeLog,v 1.30 2005/01/01 10:54:43 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/ChangeLog,v 1.31 2005/02/24 02:14:28 mr_bones_ Exp $ + + 23 Feb 2005; Michael Sterrett <mr_bones_@gentoo.org> analog-5.32.ebuild, + analog-6.0.ebuild: + use built_with_use (bug #83044); tidy *analog-6.0 (31 Dec 2004) diff --git a/app-admin/analog/Manifest b/app-admin/analog/Manifest index 2a55bdbff1bf..52868244f9d7 100644 --- a/app-admin/analog/Manifest +++ b/app-admin/analog/Manifest @@ -1,8 +1,8 @@ -MD5 669407eb801d0dcd27e81e02313a1c53 ChangeLog 3182 -MD5 e209a60c555b738b0aeabe10f50cb910 analog-5.32.ebuild 1694 +MD5 bd00e7efd6e8eda8d930b3fc33682f69 ChangeLog 3318 +MD5 aa463139fe933c62df807e7bf148f181 analog-6.0.ebuild 1590 +MD5 8a40df477d540c4d17928bd61f663fd0 analog-5.32.ebuild 1607 MD5 1652522405f5936eb29776ef8d5ffa5b metadata.xml 310 -MD5 2978e166d4afbb076d171304f398ac04 analog-6.0.ebuild 1685 MD5 2fb240fa271f7dd72dd56552f60729ab files/analog-5.1-gentoo.diff 888 MD5 bea5158163ebee10b42f2a008cf660d7 files/analog.cfg 3992 -MD5 680b3d1d4411710fa55b5ec607a66222 files/digest-analog-5.32 64 MD5 5f205be9a734af5709b5f339ee60b931 files/digest-analog-6.0 63 +MD5 680b3d1d4411710fa55b5ec607a66222 files/digest-analog-5.32 64 diff --git a/app-admin/analog/analog-5.32.ebuild b/app-admin/analog/analog-5.32.ebuild index b461419573cf..4f6d97d8637a 100644 --- a/app-admin/analog/analog-5.32.ebuild +++ b/app-admin/analog/analog-5.32.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-5.32.ebuild,v 1.17 2005/01/01 10:54:43 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-5.32.ebuild,v 1.18 2005/02/24 02:14:28 mr_bones_ Exp $ inherit eutils @@ -13,43 +13,39 @@ SLOT="0" KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86" IUSE="" -RDEPEND=">=dev-libs/libpcre-3.4 +DEPEND=">=dev-libs/libpcre-3.4 >=media-libs/gd-1.8.4-r2 sys-libs/zlib media-libs/jpeg media-libs/libpng" -DEPEND="${RDEPEND} - >=sys-apps/sed-4" pkg_setup() { - local gd_use="$(</var/db/pkg/`best_version media-libs/gd`/USE)" - if [ ! "`has jpeg ${gd_use}`" ] ; then + if ! built_with_use media-libs/gd jpeg ; then eerror "libgd is missing jpeg support. Please add" eerror "'jpeg' to your USE flags, and re-emerge libgd." die "libgd needs jpeg support" fi - - return 0 } src_unpack() { - unpack ${A} ; cd ${S} - epatch ${FILESDIR}/${PN}-5.1-gentoo.diff -} - -src_compile() { - ebegin "Configuring" - sed -i -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-5.1-gentoo.diff" + sed -i \ + -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ -e 's:^DEFS.*:DEFS = -DHAVE_GD -DHAVE_PCRE -DHAVE_ZLIB:' \ -e "s:^LIBS.*:LIBS = -lgd -lz -lpcre -lm -lpng -ljpeg:" \ - src/Makefile - eend $? + src/Makefile \ + || die "sed failed" +} +src_compile() { make -C src || die "make failed" } src_install() { - dobin analog ; newman analog.man analog.1 + dobin analog || die "dobin failed" + newman analog.man analog.1 dodoc README.txt Licence.txt analog.cfg dohtml -a html,gif,css,ico docs/* @@ -61,5 +57,5 @@ src_install() { insinto /usr/share/analog/lang ; doins lang/* dodir /var/log/analog dosym /usr/share/analog/images /var/log/analog/images - insinto /etc/analog ; doins ${FILESDIR}/analog.cfg + insinto /etc/analog ; doins "${FILESDIR}/analog.cfg" } diff --git a/app-admin/analog/analog-6.0.ebuild b/app-admin/analog/analog-6.0.ebuild index 16131820f884..11320d650035 100644 --- a/app-admin/analog/analog-6.0.ebuild +++ b/app-admin/analog/analog-6.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0.ebuild,v 1.2 2005/01/01 10:54:43 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0.ebuild,v 1.3 2005/02/24 02:14:28 mr_bones_ Exp $ inherit eutils @@ -13,44 +13,39 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" IUSE="" -RDEPEND=">=dev-libs/libpcre-3.4 +DEPEND=">=dev-libs/libpcre-3.4 >=media-libs/gd-1.8.4-r2 sys-libs/zlib media-libs/jpeg media-libs/libpng" -DEPEND="${RDEPEND} - >=sys-apps/sed-4" pkg_setup() { - local gd_use="$( cat /var/db/pkg/`best_version media-libs/gd`/USE | grep jpeg )" - - if [ -z "${gd_use}" ] ; then + if ! built_with_use media-libs/gd jpeg ; then eerror "libgd is missing jpeg support. Please add" eerror "'jpeg' to your USE flags, and re-emerge libgd." die "libgd needs jpeg support" fi - - return 0 } src_unpack() { - unpack ${A} ; cd ${S} - epatch ${FILESDIR}/${PN}-5.1-gentoo.diff -} - -src_compile() { - ebegin "Configuring" - sed -i -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-5.1-gentoo.diff" + sed -i \ + -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ -e 's:^DEFS.*:DEFS = -DHAVE_GD -DHAVE_PCRE -DHAVE_ZLIB:' \ -e "s:^LIBS.*:LIBS = -lgd -lz -lpcre -lm -lpng -ljpeg:" \ - src/Makefile - eend $? + src/Makefile \ + || die "sed failed" +} +src_compile() { make -C src || die "make failed" } src_install() { - dobin analog ; newman analog.man analog.1 + dobin analog || die "dobin failed" + newman analog.man analog.1 dodoc README.txt Licence.txt analog.cfg dohtml -a html,gif,css,ico docs/* @@ -62,5 +57,5 @@ src_install() { insinto /usr/share/analog/lang ; doins lang/* dodir /var/log/analog dosym /usr/share/analog/images /var/log/analog/images - insinto /etc/analog ; doins ${FILESDIR}/analog.cfg + insinto /etc/analog ; doins "${FILESDIR}/analog.cfg" } |