]> Pileus Git - ~andy/sunrise/commitdiff
dev-util/jsmin: Fix up jsmin ebuild to comply with mgorny's standards of excellence.
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Fri, 17 Dec 2010 16:44:56 +0000 (16:44 +0000)
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Fri, 17 Dec 2010 16:44:56 +0000 (16:44 +0000)
(Portage version: 2.2.0_alpha2-r1/svn/Linux x86_64)

svn path=/sunrise/; revision=11615

dev-util/jsmin/ChangeLog
dev-util/jsmin/jsmin-20080803.ebuild

index 832cace79c128dbfedddc724aa1ec8478471665b..a1ebe31764b54181fee06df77669650e4a4d0a16 100644 (file)
@@ -2,6 +2,10 @@
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  17 Dec 2010; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
+  jsmin-20080803.ebuild:
+  Fix up jsmin ebuild to comply with mgorny's standards of excellence.
+
 *jsmin-20080803 (17 Dec 2010)
 
   17 Dec 2010; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
index b3981c0e32028a0e8993bf533a91a9e3416e199d..008da06ce136f8fdab0b91d178a489625b334953 100644 (file)
@@ -4,8 +4,6 @@
 
 EAPI=2
 
-inherit toolchain-funcs
-
 DESCRIPTION="A simple and lightweight JavaScript minifier"
 HOMEPAGE="http://crockford.com/javascript/jsmin.html"
 SRC_URI="ftp://ohnopub.net/mirror/${P}.c"
@@ -17,10 +15,12 @@ IUSE=""
 
 S=${WORKDIR}
 
-src_unpack() { :; }
+src_unpack() {
+       cp -v "${DISTDIR}"/${P}.c "${S}"/${PN}.c || die
+}
 
 src_compile() {
-       $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} "${DISTDIR}"/${P}.c || die
+       emake ${PN} || die
 }
 
 src_install() {