Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330229 - Please review EAPI3/Gentoo Prefix changes for =net-misc/whois-5.0.6
Summary: Please review EAPI3/Gentoo Prefix changes for =net-misc/whois-5.0.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: prefix-gx86
  Show dependency tree
 
Reported: 2010-07-28 14:48 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-07-28 15:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-28 14:48:56 UTC
Can't find anyone on IRC, can I commit this?

Index: whois-5.0.6.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.6.ebuild,v
retrieving revision 1.1
diff -u -r1.1 whois-5.0.6.ebuild
--- whois-5.0.6.ebuild  24 Jul 2010 05:57:32 -0000      1.1
+++ whois-5.0.6.ebuild  28 Jul 2010 14:46:14 -0000
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.6.ebuild,v 1.1 2010/07/24 05:57:32 vapier Exp $

+EAPI=3
 inherit eutils toolchain-funcs

 MY_P=${P/-/_}
@@ -19,9 +20,7 @@
 DEPEND="${RDEPEND}
        >=dev-lang/perl-5"

-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
        epatch "${FILESDIR}"/${PN}-4.7.2-config-file.patch

        if use nls ; then
@@ -37,13 +36,13 @@
 }

 src_install() {
-       emake BASEDIR="${D}" prefix=/usr install || die
+       emake BASEDIR="${ED}" prefix=/usr install || die
        insinto /etc
        doins whois.conf
        dodoc README debian/changelog

        if [[ ${USERLAND} != "GNU" ]]; then
-               mv "${D}"/usr/share/man/man1/{whois,mdwhois}.1
-               mv "${D}"/usr/bin/{whois,mdwhois}
+               mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1
+               mv "${ED}"/usr/bin/{whois,mdwhois}
        fi
 }
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-28 15:11:05 UTC
If it works, should be fine.. wouldn't it need a dummy src_configure() { :; } though?
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-28 15:20:18 UTC
(In reply to comment #1)
> If it works, should be fine.. wouldn't it need a dummy src_configure() { :; }
> though?
> 

Well, you are correct that src_confgiure() will be ran here. But that calls econf and econf checks for existance of $ECONF_SOURCE/configure (which doesn't exist in this package. So, I feel it is a style choice. Do you care if I add a dummy or not?

<snip>
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/whois-5.0.6/work/whois-5.0.6 ...
>>> Source configured.
<snip>
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-28 15:27:16 UTC
TBH I'm always partial to add dummy when we expect a function to be no-op, had bad experience with automagic defaults changing.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-28 15:32:27 UTC
(In reply to comment #3)
> TBH I'm always partial to add dummy when we expect a function to be no-op, had
> bad experience with automagic defaults changing.
> 

OK, committed comment #0 with dummy src_configure. thx.