From: Steve Arnold Date: Tue, 16 Feb 2010 01:32:40 +0000 (+0000) Subject: Removed legacy code, moved checks to pkg_setup, and removed addpredict. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=48b307334d780011b396cbb07c579049dc239df8;p=gentoo.git Removed legacy code, moved checks to pkg_setup, and removed addpredict. Package-Manager: portage-2.2_rc61/cvs/Linux x86_64 --- diff --git a/dev-util/rapidsvn/ChangeLog b/dev-util/rapidsvn/ChangeLog index 28a75682ebc1..cf63efaf0d3c 100644 --- a/dev-util/rapidsvn/ChangeLog +++ b/dev-util/rapidsvn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/rapidsvn # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/ChangeLog,v 1.68 2010/02/13 21:16:38 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/ChangeLog,v 1.69 2010/02/16 01:32:40 nerdboy Exp $ + + 16 Feb 2010; Steve Arnold rapidsvn-0.9.6-r1.ebuild, + rapidsvn-0.9.8.ebuild, rapidsvn-0.10.0.ebuild, rapidsvn-0.12.0.ebuild: + Removed legacy code, moved checks to pkg_setup, and removed addpredict + in 4 latest ebuild versions. Closes bug #305325. *rapidsvn-0.12.0 (13 Feb 2010) diff --git a/dev-util/rapidsvn/Manifest b/dev-util/rapidsvn/Manifest index 3ae8f8e13173..469cbd85f8b5 100644 --- a/dev-util/rapidsvn/Manifest +++ b/dev-util/rapidsvn/Manifest @@ -7,11 +7,11 @@ DIST rapidsvn-0.9.3.tar.gz 998268 RMD160 316904503ab1a067fb14b0567d6e28bc2a6ad6c DIST rapidsvn-0.9.4.tar.gz 1057482 RMD160 edbabab261b69acc78a2009f2da175b2b70c8987 SHA1 0f8eff53964f641253d6a4be82187ab9f30168c7 SHA256 20c6a17ed91171bae6c3af7b611b0f91395cb2962fc0cfe1d66dfd5178d60651 DIST rapidsvn-0.9.6.tar.gz 1205771 RMD160 060a66d3f268f9a4018f01a9541df2a3394ed7b8 SHA1 266f846437e3bbce1707799ec0d95c2d1be43b4a SHA256 4e026b0e7a56b2a0ba4cd12b1ee224c8d0645e98eb5b682078220f912513b36d DIST rapidsvn-0.9.8.tar.gz 1212108 RMD160 a1614daff3631536c3eb0a14c279f0581b257fbf SHA1 22d145d2d686841da100d45789a663c70e325a3c SHA256 9af7462559d8a600a1b54ac19a79c111691818969e193a06080c9d9306b32b13 -EBUILD rapidsvn-0.10.0.ebuild 2616 RMD160 5ac126933d2e69205004c46b90598716110cbdc5 SHA1 2153f01ff0cbfa9c85024cd376f7c1ca362dd61d SHA256 149bccdb05f55b9f98066f27bd7329a0bc25174fb2dcdd38826eefc5f5d76636 -EBUILD rapidsvn-0.12.0.ebuild 2981 RMD160 72958099206e4f8d9c9afdaa732513e05915532e SHA1 020059511348465f117b4026f02370ef8df761d0 SHA256 8c52a9d9c06cb2121ca34064f24940b46ebc01933011e9c7b50137c22533986e +EBUILD rapidsvn-0.10.0.ebuild 2837 RMD160 ff5e94630a2767dd003a2cd5fa411fdb880fbbb9 SHA1 f4b3a7bcd39826f5dbe44557b7d56f11c727aa5c SHA256 3e81b688bb0c22317cfc8385498aaaa2939e9cbd750c758b67516e78b11e5e21 +EBUILD rapidsvn-0.12.0.ebuild 2752 RMD160 1e679ed589baf24427233310a02e301c46cfc283 SHA1 7b01d129607368576cf8a1de3c6e39b46fb9ffc2 SHA256 d85ee7c77a0b8b7f98a33ff5d9edaf0e654a9568c5ee0c832e4a92ebf720f4a1 EBUILD rapidsvn-0.9.3.ebuild 3091 RMD160 466e320834ce751fcfb7b8f94a629b63c1dbca09 SHA1 f207b23c2031d349aab9002440c4cbf10bb17435 SHA256 699bffef14e903b9f1774dc4701077c38abd9a9f2d82aea96e7670988e96ca0b EBUILD rapidsvn-0.9.4.ebuild 3072 RMD160 ec90d18c04914eda51f0170211c152c687acac70 SHA1 ac8e219a3680ee93e8db6b2db95a3ea994cc0af8 SHA256 82829bbb651c340d6b3d2eba80864798fbd9d824ab3473476b56753f23422805 -EBUILD rapidsvn-0.9.6-r1.ebuild 3373 RMD160 4d1382864a7b09cbc3a516a0a084be11826544bc SHA1 19b9a8cb6defc5b0a3c591783768bc401bcb8e5f SHA256 29b7bcef2d09ce5ca684ce36f3adf0ab0955b98a50d38681c1324cb5543c742d -EBUILD rapidsvn-0.9.8.ebuild 3158 RMD160 749aa2960b3131b17bd59656787655e9923ab379 SHA1 9de39a885f18a45436af55638ee7050d47868bd2 SHA256 13b56e9b151c93bc0cb997b48ae1de1e152748a1580cf2a25223578a99c1d2ce -MISC ChangeLog 11310 RMD160 1d1d9b33938a175fcc0ae74209e690e082980b63 SHA1 352d79ef17a04aaea5ac100800ff4734d64d1e54 SHA256 52fb081bfb0b6560435dc42a5b075df431d20cd5a782af86e23a1e9493017b3b +EBUILD rapidsvn-0.9.6-r1.ebuild 3175 RMD160 573fbafa40f61dd472ae311f84a573989f95be78 SHA1 4f17f823be4336474d8782b86bb770a07689979a SHA256 dac0a2601c7e4797bce4a7dffd0fab8e47f55ca037085deb2a4b251464fef995 +EBUILD rapidsvn-0.9.8.ebuild 3006 RMD160 e0ebe5101158da24dc4dac65b9d064031c4d6d14 SHA1 5c58fbd329a2e753c5491c9237cefdadf27e2e65 SHA256 67b600df432e11ff703cf2595e5730034f3cbdbb305323fad37bb2aaf2e3578d +MISC ChangeLog 11584 RMD160 3ebec90e5a4f77aa6b7a6edef0022fbfa0ed5feb SHA1 049b82de755cf9f4d8b73e1ea10d97357900f91b SHA256 ff1bfd81beda27a7525e8f3dfa640ddb9ae25d49665111206692f02ec1fd2692 MISC metadata.xml 518 RMD160 b9c97307a72d2c0ae05deb166229ffc603d8855b SHA1 6b9c6a8c99c7dd184cf048b4e306f0a0e5f81788 SHA256 b7e173df02d2585da2771a95e6acd8ae824e61887087747d227b9ea07bf0b435 diff --git a/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild b/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild index 57c36b0d89fa..4b43a2096c25 100644 --- a/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild +++ b/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild @@ -1,10 +1,12 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild,v 1.1 2009/10/12 07:29:46 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.10.0.ebuild,v 1.2 2010/02/16 01:32:40 nerdboy Exp $ EAPI="2" + WANT_AUTOCONF="2.5" -inherit versionator eutils libtool autotools wxwidgets flag-o-matic fdo-mime +WX_GTK_VER=2.8 +inherit versionator confutils libtool autotools wxwidgets flag-o-matic fdo-mime MY_PV=$(get_version_component_range 1-2) MY_RELEASE="1" @@ -20,7 +22,7 @@ IUSE="doc" COMMON_DEP="|| ( >=dev-util/subversion-1.5.0[webdav-serf] >=dev-util/subversion-1.5.0[webdav-neon] ) - >=x11-libs/wxGTK-2.6 + x11-libs/wxGTK:2.8[X] >=dev-libs/apr-1.2.10 >=dev-libs/apr-util-1.2.10" @@ -34,6 +36,20 @@ RDEPEND="${COMMON_DEP}" RESTRICT="" +pkg_setup() { + einfo "Checking for subversion compiled with WebDAV support..." + confutils_require_built_with_any \ + dev-util/subversion webdav-serf webdav-neon + einfo "Found WebDAV support; continuing..." + + # if you compiled subversion without (the) apache2 (flag) and with the + # berkdb flag, you may get an error that it can't find the lib db4 + # Note: this should be fixed in rapidsvn 0.9.3 and later + + # check for the proper wxGTK support + need-wxwidgets unicode +} + src_prepare() { # Apparently we still need the --as-needed link patch... #export EPATCH_OPTS="-F3 -l" @@ -57,11 +73,6 @@ src_configure() { --without-doxygen --without-dot" fi - local INST_WX=$(best_version x11-libs/wxGTK) - export WX_GTK_VER=$(get_version_component_range 1-2 \ - ${INST_WX/x11-libs\/wxGTK}) - - need-wxwidgets ansi myconf="${myconf} --with-wx-config=${WX_CONFIG}" append-flags $( /usr/bin/apr${apr_suffix}-config --cppflags ) @@ -74,11 +85,7 @@ src_configure() { } src_compile() { - ## doxygen made a sandbox error; no bug filed yet - if use doc; then - addpredict /var/cache/fontconfig - emake || die "emake failed" - fi + emake || die "emake failed" } src_install() { diff --git a/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild b/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild index 3300e03a4c5c..91bdbdd7ffbf 100644 --- a/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild +++ b/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild,v 1.1 2010/02/13 21:16:38 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.12.0.ebuild,v 1.2 2010/02/16 01:32:40 nerdboy Exp $ EAPI="2" WANT_AUTOCONF="2.5" +WX_GTK_VER=2.8 inherit versionator confutils libtool autotools wxwidgets flag-o-matic fdo-mime MY_PV=$(get_version_component_range 1-2) @@ -19,7 +20,7 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="doc" COMMON_DEP=">=dev-util/subversion-1.5.0 - >=x11-libs/wxGTK-2.6 + x11-libs/wxGTK:2.8[X] >=dev-libs/apr-1.2.10 >=dev-libs/apr-util-1.2.10" @@ -44,13 +45,15 @@ pkg_setup() { # if you compiled subversion without (the) apache2 (flag) and with the # berkdb flag, you may get an error that it can't find the lib db4 # Note: this should be fixed in rapidsvn 0.9.3 and later + + # check for the proper wxGTK support + need-wxwidgets unicode } src_prepare() { # Apparently we still need the --as-needed link patch... #export EPATCH_OPTS="-F3 -l" epatch "${FILESDIR}/${PN}-svncpp_link.patch" - #epatch "${FILESDIR}/${P}-sar.patch" eautoreconf } @@ -69,11 +72,6 @@ src_configure() { --without-doxygen --without-dot" fi - local INST_WX=$(best_version x11-libs/wxGTK) - export WX_GTK_VER=$(get_version_component_range 1-2 \ - ${INST_WX/x11-libs\/wxGTK}) - - need-wxwidgets ansi myconf="${myconf} --with-wx-config=${WX_CONFIG}" append-flags $( /usr/bin/apr${apr_suffix}-config --cppflags ) @@ -86,11 +84,7 @@ src_configure() { } src_compile() { - ## doxygen made a sandbox error; no bug filed yet - if use doc; then - addpredict /var/cache/fontconfig - emake || die "emake failed" - fi + emake || die "emake failed" } src_install() { diff --git a/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild b/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild index 6d99617f4353..687fc2e528b5 100644 --- a/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild +++ b/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild,v 1.6 2008/09/17 20:46:01 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.9.6-r1.ebuild,v 1.7 2010/02/16 01:32:40 nerdboy Exp $ WANT_AUTOCONF="2.5" +WX_GTK_VER=2.8 inherit versionator eutils libtool autotools wxwidgets flag-o-matic fdo-mime DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system." @@ -15,7 +16,7 @@ IUSE="doc static" COMMON_DEP=">=dev-util/subversion-1.4.4 >=net-misc/neon-0.26 - >=x11-libs/wxGTK-2.6 + =x11-libs/wxGTK-2.8* >=dev-libs/apr-1.2.10 >=dev-libs/apr-util-1.2.10" @@ -29,18 +30,7 @@ RDEPEND="${COMMON_DEP}" RESTRICT="" -src_unpack() { - unpack ${A} - cd "${S}" - - # Apparently we still need the --as-needed link patch... - epatch "${FILESDIR}/${PN}-svncpp_link.patch" - epatch "${FILESDIR}/${PN}-sar.patch" - eautoconf - elibtoolize -} - -src_compile() { +pkg_setup() { einfo "Checking for subversion compiled with WebDAV support..." if ! built_with_use --missing true -o dev-util/subversion webdav-neon webdav-serf || \ built_with_use --missing false dev-util/subversion nowebdav; then @@ -55,18 +45,31 @@ src_compile() { # if you compiled subversion without (the) apache2 (flag) and with the # berkdb flag, you will get an error that it can't find the lib db4 # Note: this should be fixed in rapidsvn 0.9.3 and later + + # check for the proper wxGTK support + need-wxwidgets unicode +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Apparently we still need the --as-needed link patch... + epatch "${FILESDIR}/${PN}-svncpp_link.patch" + epatch "${FILESDIR}/${PN}-sar.patch" + eautoconf + elibtoolize +} + +src_compile() { local myconf - local xslss_dir local apr_suffix="" if has_version ">dev-libs/apr-util-1"; then apr_suffix="-1" fi - if use doc; then - xslss_dir=$(ls -1d /usr/share/sgml/docbook/xsl-stylesheets*|head -n1) - myconf="--with-docbook-xsl=$xslss_dir" - else + if ! use doc; then myconf="--without-xsltproc --without-doxygen --without-dot" fi @@ -76,11 +79,6 @@ src_compile() { myconf="${myconf} --disable-static --enable-shared" fi - local INST_WX=$(best_version x11-libs/wxGTK) - export WX_GTK_VER=$(get_version_component_range 1-2 \ - ${INST_WX/x11-libs\/wxGTK}) - - need-wxwidgets ansi myconf="${myconf} --with-wx-config=${WX_CONFIG}" append-flags $( /usr/bin/apr${apr_suffix}-config --cppflags ) @@ -91,6 +89,7 @@ src_compile() { --with-apr-config="/usr/bin/apr${apr_suffix}-config" \ --with-apu-config="/usr/bin/apu${apr_suffix}-config" \ ${myconf} || die "econf failed" + emake || die "emake failed" } diff --git a/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild b/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild index 2d13e904d8e5..bbc24ea0c3b1 100644 --- a/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild +++ b/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild,v 1.2 2009/08/01 15:42:52 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.9.8.ebuild,v 1.3 2010/02/16 01:32:40 nerdboy Exp $ WANT_AUTOCONF="2.5" +WX_GTK_VER=2.8 inherit versionator eutils libtool autotools wxwidgets flag-o-matic fdo-mime DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system." @@ -14,7 +15,7 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="doc" COMMON_DEP=">=dev-util/subversion-1.5.0 - >=x11-libs/wxGTK-2.6 + =x11-libs/wxGTK-2.8* >=dev-libs/apr-1.2.10 >=dev-libs/apr-util-1.2.10" @@ -28,6 +29,26 @@ RDEPEND="${COMMON_DEP}" RESTRICT="" +pkg_setup() { + einfo "Checking for subversion compiled with WebDAV support..." + if ! built_with_use --missing true -o dev-util/subversion webdav-neon webdav-serf || \ + built_with_use --missing false dev-util/subversion nowebdav; then + ewarn "SVN (dev-util/subversion) must be compiled with WebDAV support." + ewarn "Please re-emerge subversion with webdav-neon or webdav-serf USE flag" + ewarn "and without the nowebdav USE flag." + die "SVN merged without WebDAV support" + else + einfo "Found WebDAV support; continuing..." + fi + + # if you compiled subversion without (the) apache2 (flag) and with the + # berkdb flag, you will get an error that it can't find the lib db4 + # Note: this should be fixed in rapidsvn 0.9.3 and later + + # check for the proper wxGTK support + need-wxwidgets unicode +} + src_unpack() { unpack ${A} cd "${S}" @@ -40,20 +61,6 @@ src_unpack() { } src_compile() { - einfo "Checking for subversion compiled with WebDAV support..." - if ! built_with_use --missing true -o dev-util/subversion webdav-serf || \ - built_with_use --missing false dev-util/subversion nowebdav; then - ewarn "SVN (dev-util/subversion) must be compiled with WebDAV support." - ewarn "Please re-emerge subversion with the webdav-serf USE flag and" - ewarn "without the nowebdav USE flag." - die "SVN merged without WebDAV support" - else - einfo "Found WebDAV support; continuing..." - fi - - # if you compiled subversion without (the) apache2 (flag) and with the - # berkdb flag, you will get an error that it can't find the lib db4 - # Note: this should be fixed in rapidsvn 0.9.3 and later local myconf local apr_suffix="" @@ -68,11 +75,6 @@ src_compile() { --without-doxygen --without-dot" fi - local INST_WX=$(best_version x11-libs/wxGTK) - export WX_GTK_VER=$(get_version_component_range 1-2 \ - ${INST_WX/x11-libs\/wxGTK}) - - need-wxwidgets ansi myconf="${myconf} --with-wx-config=${WX_CONFIG}" append-flags $( /usr/bin/apr${apr_suffix}-config --cppflags ) @@ -83,11 +85,7 @@ src_compile() { --with-apu-config="/usr/bin/apu${apr_suffix}-config" \ ${myconf} || die "econf failed" - ## doxygen made a sandbox error; no bug filed yet - if use doc; then - addpredict /var/cache/fontconfig - emake || die "emake failed" - fi + emake || die "emake failed" } src_install() {