diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-02-09 22:46:53 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-02-09 22:47:28 +0000 |
commit | ba17538666435ccc04b65457b8189911f5438fbe (patch) | |
tree | 501cf893b43dadee88008f05239df310b4c3e4cb /dev-util/yuicompressor | |
parent | app-cdr/cuetools: eapi bump (diff) | |
download | gentoo-ba17538666435ccc04b65457b8189911f5438fbe.tar.gz gentoo-ba17538666435ccc04b65457b8189911f5438fbe.tar.bz2 gentoo-ba17538666435ccc04b65457b8189911f5438fbe.zip |
dev-util/yuicompressor: Fix several problems with 2.4.8-r1
2.4.8-r1 was a bit of a lemon.
Rhino can't be unbundled because apart from the custom modifications,
yuicompressor uses 1.7R2, which is substantially different to the
1.7.7 we have in the tree.
This also restores the launcher script, fixes the version number, and
adds the doc and source USE flags.
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-util/yuicompressor')
-rw-r--r-- | dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild (renamed from dev-util/yuicompressor/yuicompressor-2.4.8-r1.ebuild) | 28 | ||||
-rw-r--r-- | dev-util/yuicompressor/yuicompressor-2.4.8.ebuild | 27 |
2 files changed, 18 insertions, 37 deletions
diff --git a/dev-util/yuicompressor/yuicompressor-2.4.8-r1.ebuild b/dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild index 0a14be33bbcb..dbc74962d332 100644 --- a/dev-util/yuicompressor/yuicompressor-2.4.8-r1.ebuild +++ b/dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild @@ -4,19 +4,20 @@ EAPI=5 +RHINO_JAR="lib/rhino-1.7R2.jar" +JAVA_PKG_IUSE="doc source" + inherit java-pkg-2 java-pkg-simple DESCRIPTION="JavaScript and CSS compressor" HOMEPAGE="http://yui.github.io/yuicompressor/" SRC_URI="https://github.com/yui/yuicompressor/archive/v${PV}.tar.gz -> ${P}.tar.gz" - LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" CDEPEND=" - dev-java/jargs:0 - dev-java/rhino:1.6" + dev-java/jargs:0" DEPEND=" ${CDEPEND} @@ -27,14 +28,21 @@ RDEPEND=" >=virtual/jre-1.6" S="${WORKDIR}/${P}" - -JAVA_GENTOO_CLASSPATH=" - jargs - rhino-1.6 -" - +JAVA_GENTOO_CLASSPATH="jargs" +JAVA_GENTOO_CLASSPATH_EXTRA="${S}/${RHINO_JAR}" JAVA_SRC_DIR="src" java_prepare() { - java-pkg_clean + # Rhino must stay bundled for now. + rm -v lib/jargs*.jar || die + + # Normally build.xml does this. + sed -i "s/@VERSION@/${PV}/g" \ + src/com/yahoo/platform/yui/compressor/YUICompressor.java || die +} + +src_install() { + java-pkg-simple_src_install + java-pkg_newjar ${RHINO_JAR} rhino.jar # Install this last!! + java-pkg_dolauncher ${PN} --main com.yahoo.platform.yui.compressor.Bootstrap } diff --git a/dev-util/yuicompressor/yuicompressor-2.4.8.ebuild b/dev-util/yuicompressor/yuicompressor-2.4.8.ebuild deleted file mode 100644 index 6ee725b68bef..000000000000 --- a/dev-util/yuicompressor/yuicompressor-2.4.8.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JavaScript and CSS compressor" -HOMEPAGE="http://yui.github.io/yuicompressor/" -SRC_URI="https://github.com/yui/yuicompressor/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=">=virtual/jdk-1.6" -RDEPEND=">=virtual/jre-1.6" - -src_compile(){ - eant -} - -src_install() { - java-pkg_newjar "build/${P}.jar" "${PN}.jar" - java-pkg_dolauncher "${PN}" -} |