Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/ec2-api-tools: ChangeLog ec2-api-tools-1.6.7.2-r2.ebuild
Date: Fri, 31 May 2013 22:09:53
Message-Id: 20130531220947.C2A382171D@flycatcher.gentoo.org
tomwij      13/05/31 22:09:47

  Modified:             ChangeLog
  Added:                ec2-api-tools-1.6.7.2-r2.ebuild
  Log:
  Unbundled half of the libraries, the other half is missing, committed as unkeyworded since this is a work in progress and breaks a lot of things; reported by robbat2 on IRC, tracked in bug #471942.
  
  (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)

Revision  Changes    Path
1.19                 app-admin/ec2-api-tools/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?r1=1.18&r2=1.19

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ChangeLog	26 Apr 2013 21:06:55 -0000	1.18
+++ ChangeLog	31 May 2013 22:09:47 -0000	1.19
@@ -1,6 +1,13 @@
 # ChangeLog for app-admin/ec2-api-tools
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v 1.18 2013/04/26 21:06:55 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v 1.19 2013/05/31 22:09:47 tomwij Exp $
+
+*ec2-api-tools-1.6.7.2-r2 (31 May 2013)
+
+  31 May 2013; Tom Wijsman <TomWij@g.o> +ec2-api-tools-1.6.7.2-r2.ebuild:
+  Unbundled half of the libraries, the other hal half is missing, committed as
+  unkeyworded since this is a work in progress and breaks a lot of things;
+  reported by robbat2 on IRC, tracked in bug #471942.
 
 *ec2-api-tools-1.6.7.2 (26 Apr 2013)
 



1.1                  app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r2.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r2.ebuild?rev=1.1&content-type=text/plain

Index: ec2-api-tools-1.6.7.2-r2.ebuild
===================================================================
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2-r2.ebuild,v 1.1 2013/05/31 22:09:47 tomwij Exp $

EAPI="5"

inherit versionator java-pkg-2

DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service"
HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88"
SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${PV}.zip"

S=${WORKDIR}/${PN}-${PV}

LICENSE="Amazon"
SLOT="0"
KEYWORDS=""
RESTRICT="mirror"

CDEPEND="dev-java/bcprov:0
	dev-java/commons-cli:1
	dev-java/commons-codec:0
	dev-java/commons-discovery:0
	dev-java/commons-httpclient:3
	dev-java/commons-logging:0
	dev-java/jaxb:2
	dev-java/jax-ws:2
	dev-java/jsr173:0
	dev-java/jdom:1.0
	dev-java/log4j:0
	dev-java/wsdl4j:0
	dev-java/xalan:0
	dev-java/xalan-serializer:0
	dev-java/xerces:2"

DEPEND="${CDEPEND}
	app-arch/unzip:0"

RDEPEND="${CDEPEND}
	>=virtual/jre-1.4"

java_prepare() {
	rm lib/{bcprov-jdk*,commons-cli-*,commons-codec-*,commons-discovery,commons-httpclient-*,commons-logging-adapters-*,commons-logging-api-*,jaxb-api,jaxb-impl,jaxws-api,jdom,log4j-*,stax2-api-*,wsdl4j,xalan,xercesImpl}.jar \
		|| die "Failed to remove bundled jar files that are provided by system."

	find . -name '*.cmd' -delete || die "Failed to remove non-Linux files."

	sed -i "s:LIBDIR=\".*\":LIBDIR=\"/usr/share/${PN}/lib\":g" bin/ec2-cmd || die "Failed to set the library path in the wrapper."

	for FILE in bin/* ; do
		sed -i 's:${EC2_HOME}:/usr:g' ${FILE} || die "Failed to set the EC2_HOME value in the wrappers."
	done
}

src_install() {
	exeinto /usr/bin
	doexe bin/*

	insinto /usr/share/${PN}/lib
	doins lib/*.jar
	dosym $(java-pkg_getjar bcprov{,.jar}) bcprov-jdk15-145.jar
	dosym $(java-pkg_getjar commons-cli{-1,.jar}) commons-cli-1.1.jar
	dosym $(java-pkg_getjar commons-codec{,.jar}) commons-codec-1.4.jar
	dosym $(java-pkg_getjar commons-discovery{,.jar}) commons-discovery.jar
	dosym $(java-pkg_getjar commons-httpclient{-3,.jar}) commons-httpclient-3.1.jar
	dosym $(java-pkg_getjar commons-logging{,-adapters.jar}) commons-logging-adapters-1.1.1.jar
	dosym $(java-pkg_getjar commons-logging{,-api.jar}) commons-logging-api-1.1.1.jar
	dosym $(java-pkg_getjar jaxb{-2,-api.jar}) jaxb-api.jar
	dosym $(java-pkg_getjar jaxb{-2,-impl.jar}) jaxb-impl.jar
	dosym $(java-pkg_getjar jax-ws{-2,.jar}) jaxws-api.jar
	dosym $(java-pkg_getjar jdom{-1.0,.jar}) jdom.jar
	dosym $(java-pkg_getjar log4j{,.jar}) log4j-1.2.14.jar
	dosym $(java-pkg_getjar jsr173{,.jar}) stax2-api-3.0.1.jar
	dosym $(java-pkg_getjar wsdl4j{,.jar}) wsdl4j.jar
	dosym $(java-pkg_getjar xalan{,.jar}) xalan.jar
	dosym $(java-pkg_getjar xerces{-2,Impl.jar}) xercesImpl.jar

	dodoc THIRDPARTYLICENSE.TXT
}

pkg_postinst() {
	elog ""
	elog "You need to put the following in your ~/.bashrc replacing the"
	elog "values with the full paths to your key and certificate."
	elog ""
	elog "  export EC2_PRIVATE_KEY=/path/to/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
	elog "  export EC2_CERT=/path/to/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
}