diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2017-12-29 21:36:39 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2017-12-29 21:36:39 +0100 |
commit | 5482d1cfeed1f30fe2640d365142b2e19832bebe (patch) | |
tree | c9bcc92b8032d50436e4973b4e25acbb345b9438 /dev-ada/xmlada | |
parent | sys-libs/tapi: simplify by using S (diff) | |
download | gentoo-5482d1cfeed1f30fe2640d365142b2e19832bebe.tar.gz gentoo-5482d1cfeed1f30fe2640d365142b2e19832bebe.tar.bz2 gentoo-5482d1cfeed1f30fe2640d365142b2e19832bebe.zip |
dev-ada/xmlada: Fix reinstalling and eliminate duplicated files
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ada/xmlada')
-rw-r--r-- | dev-ada/xmlada/Manifest | 1 | ||||
-rw-r--r-- | dev-ada/xmlada/xmlada-2016.ebuild | 57 | ||||
-rw-r--r-- | dev-ada/xmlada/xmlada-2017.ebuild | 33 |
3 files changed, 28 insertions, 63 deletions
diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest index a8b0ab867aff..f2cfd0ebb375 100644 --- a/dev-ada/xmlada/Manifest +++ b/dev-ada/xmlada/Manifest @@ -1,2 +1 @@ -DIST xmlada-gpl-2016-src.tar.gz 1440671 BLAKE2B 32998fbdb680f3a1ea7915f144c3039441d8608ded9fe2df99d9b5c9d13436a020c25a9773cced753ffa3ff89a918bbb1ef3ca310cbc58f583682deb7dcc9d09 SHA512 d1d7c3d91731394235aed4b80c91b1babe30d5f184282fae8087ee556318475e3923ed628b805693fc89a4d9bb219b0fb0937bc5024a742226da0245d36ed652 DIST xmlada-gpl-2017-src.tar.gz 1578393 BLAKE2B 7b4894040b6044e86c96cbd530ebda5c0cfc4ad0e2b472d46798a93f535aca0916b03385a3aef49bd4e59d508a9665c856360e9cab0a4f67b15091228b629d81 SHA512 371f6adc01550a4bb13204ec0404dc1165438db595f4346813e5a23a155de74c857c40c55adde173919c2fe35b3b91d78b235c9718ee86bc848e62ddfd7fa2b4 diff --git a/dev-ada/xmlada/xmlada-2016.ebuild b/dev-ada/xmlada/xmlada-2016.ebuild deleted file mode 100644 index 585a5492bb7d..000000000000 --- a/dev-ada/xmlada/xmlada-2016.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit multiprocessing - -MYP=${PN}-gpl-${PV} - -DESCRIPTION="Set of modules that provide a simple manipulation of XML streams" -HOMEPAGE="http://libre.adacore.com/" -SRC_URI="http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 -> - ${MYP}-src.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="+gnat_2016 gnat_2017 +shared static static-pic" -REQUIRED_USE="|| ( shared static static-pic ) - ^^ ( gnat_2016 gnat_2017 )" - -RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) - gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )" -DEPEND="${RDEPEND} - dev-ada/gprbuild[gnat_2016=,gnat_2017=]" - -S="${WORKDIR}"/${MYP}-src - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) - -src_configure () { - econf --prefix="${D}"/usr -} - -src_compile () { - for kind in shared static static-pic; do - if use ${kind}; then - emake PROCESSORS=$(makeopts_jobs) ${kind} - fi - done -} - -src_test() { - emake test - emake run_test | grep DIFF && die -} - -src_install () { - for kind in shared static static-pic; do - if use ${kind}; then - emake PROCESSORS=$(makeopts_jobs) DESTDIR="${D}" install-${kind} - fi - done - einstalldocs - dodoc features-* known-problems-* xmlada-roadmap.txt - rm "${D}"/usr/share/doc/${PN}/.buildinfo || die -} diff --git a/dev-ada/xmlada/xmlada-2017.ebuild b/dev-ada/xmlada/xmlada-2017.ebuild index b80b4c4237f5..04b53bcdf500 100644 --- a/dev-ada/xmlada/xmlada-2017.ebuild +++ b/dev-ada/xmlada/xmlada-2017.ebuild @@ -33,16 +33,17 @@ src_configure () { } src_compile () { - if use shared; then - gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=relocatable \ + build () { + gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \ -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ -cargs ${ADAFLAGS} || die "gprbuild failed" + } + if use shared; then + build relocatable fi for kind in static static-pic; do if use ${kind}; then - gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=${kind} \ - -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ - -cargs ${ADAFLAGS} || die "gprbuild failed" + build ${kind} fi done } @@ -53,11 +54,33 @@ src_test() { } src_install () { + local includedir=/usr/include/${PN} + + fix_install () { + mv "${D}"${includedir}/$1.$2/* "${D}"${includedir}/$1/ || die + for file in "${D}"${includedir}/$1/*; do + dosym ../$1/$(basename ${file}) \ + ${includedir}/$1.$2/$(basename ${file}) + done + } + for kind in shared static static-pic; do if use ${kind}; then emake PROCESSORS=$(makeopts_jobs) install-${kind} fi done + rm "${D}"/usr/lib/libxmlada_* || die + for dir in xmlada_{dom,input,sax,schema,unicode}; do + dodir /usr/include/${PN}/${dir} + if use shared; then + fix_install ${dir} relocatable + fi + for kind in static static-pic; do + if use ${kind}; then + fix_install ${dir} ${kind} + fi + done + done einstalldocs dodoc xmlada-roadmap.txt rm "${D}"/usr/share/doc/${PN}/.buildinfo || die |