Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/
Date: Thu, 28 Jun 2018 06:16:00
Message-Id: 1530166463.bcb375575b1c7582649496c073be17fd70f7af26.tupone@gentoo
1 commit: bcb375575b1c7582649496c073be17fd70f7af26
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 06:14:23 2018 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 06:14:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcb37557
7
8 dev-ada/xmlada: Fix and simplify install
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-ada/xmlada/xmlada-2018.ebuild | 42 +++++++++++++--------------------------
13 1 file changed, 14 insertions(+), 28 deletions(-)
14
15 diff --git a/dev-ada/xmlada/xmlada-2018.ebuild b/dev-ada/xmlada/xmlada-2018.ebuild
16 index ac43dd63a66..a2e90457d20 100644
17 --- a/dev-ada/xmlada/xmlada-2018.ebuild
18 +++ b/dev-ada/xmlada/xmlada-2018.ebuild
19 @@ -56,37 +56,23 @@ src_test() {
20 }
21
22 src_install () {
23 - local includedir=/usr/include/${PN}
24 -
25 - fix_install () {
26 - mv "${D}"${includedir}/$1.$2/* "${D}"${includedir}/$1/ || die
27 - for file in "${D}"${includedir}/$1/*; do
28 - dosym ../$1/$(basename ${file}) \
29 - ${includedir}/$1.$2/$(basename ${file})
30 - done
31 + build () {
32 + gprinstall -XLIBRARY_TYPE=$1 -f -p -XBUILD=Production \
33 + -XPROCESSORS=$(makeopts_jobs) --prefix="${D}"usr \
34 + --install-name=xmlada --build-var=LIBRARY_TYPE \
35 + --build-var=XMLADA_BUILD \
36 + --build-name=$1 xmlada.gpr || die "gprinstall failed"
37 }
38 -
39 + if use shared; then
40 + build relocatable
41 + fi
42 if use static-libs; then
43 - emake PROCESSORS=$(makeopts_jobs) install-static
44 + build static
45 fi
46 - for kind in shared static-pic; do
47 - if use ${kind}; then
48 - emake PROCESSORS=$(makeopts_jobs) install-${kind}
49 - fi
50 - done
51 - rm "${D}"/usr/lib/libxmlada_* || die
52 - for dir in xmlada_{dom,input,sax,schema,unicode}; do
53 - dodir /usr/include/${PN}/${dir}
54 - if use shared; then
55 - fix_install ${dir} relocatable
56 - fi
57 - if use static-libs; then
58 - fix_install ${dir} static
59 - fi
60 - if use static-pic; then
61 - fix_install ${dir} static-pic
62 - fi
63 - done
64 + if use static-pic; then
65 + build static-pic
66 + fi
67 +
68 einstalldocs
69 dodoc xmlada-roadmap.txt
70 rm "${D}"/usr/share/doc/${PN}/.buildinfo || die