Merged from trunk 6378:6379
authorFabian Groffen <grobian@gentoo.org>
Thu, 12 Apr 2007 13:18:12 +0000 (13:18 -0000)
committerFabian Groffen <grobian@gentoo.org>
Thu, 12 Apr 2007 13:18:12 +0000 (13:18 -0000)
   +------------------------------------------------------------------------+
   | 6379     | cleanup example ebuild to be more representative of a       |
   | SpankMan | "good" ebuild #174260 by Timothy Redaelli                   |
   +------------------------------------------------------------------------+
   (I'm somehow not convinced this example is completely correct...)

svn path=/main/branches/prefix/; revision=6380

man/ebuild.5

index 4d8c4aea9a6e38108dfedd3101b0ae01dfd923a5..1d16a7e29f7ec2c986e10ecfccfea4709a165013 100644 (file)
@@ -30,23 +30,19 @@ SLOT="0"
 KEYWORDS="~x86"
 IUSE=""
 
-DEPEND="virtual/libc"
-RDEPEND="virtual/libc"
+RDEPEND=""
+DEPEND="nls? ( sys-devel/gettext )"
 
 src_compile() {
-       econf || die "could not configure"
+       econf \\
+               \-\-bindir=/bin \\
+               || die "could not configure"
        emake || die "emake failed"
 }
 
 src_install() {
-       into /usr
-       doinfo doc/sed.info
-       doman doc/sed.1
-       into /
-       dobin sed/sed || die "dobin sed failed"
-       dodir /usr/bin
-       dosym /bin/sed /usr/bin/sed
-       dodoc NEWS README* THANKS TODO AUTHORS BUGS ANNOUNCE
+       emake install DESTDIR="${D}" || die "Install failed"
+       dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog
 }
 .fi
 .SH "VARIABLES"