Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/libxsd-frontend/
Date: Sat, 15 Oct 2016 16:36:24
Message-Id: 1476549355.10adf90b3ef081369f26aa6d6b57787447ff11cb.soap@gentoo
1 commit: 10adf90b3ef081369f26aa6d6b57787447ff11cb
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 15 13:40:39 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 15 16:35:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10adf90b
7
8 dev-cpp/libxsd-frontend: Version bump to 2.0.0
9
10 Gentoo-bug: 585738, 594542
11 * EAPI=6
12
13 Package-Manager: portage-2.3.2
14
15 dev-cpp/libxsd-frontend/Manifest | 1 +
16 .../libxsd-frontend/libxsd-frontend-2.0.0.ebuild | 88 ++++++++++++++++++++++
17 dev-cpp/libxsd-frontend/metadata.xml | 8 +-
18 3 files changed, 93 insertions(+), 4 deletions(-)
19
20 diff --git a/dev-cpp/libxsd-frontend/Manifest b/dev-cpp/libxsd-frontend/Manifest
21 index 72d108a..49005b4 100644
22 --- a/dev-cpp/libxsd-frontend/Manifest
23 +++ b/dev-cpp/libxsd-frontend/Manifest
24 @@ -1 +1,2 @@
25 DIST libxsd-frontend-1.18.0.tar.bz2 66937 SHA256 78382d44ae0575fec04eb2e2e70c2bb751b49eb995aad725d3c2e9ee8ac98590 SHA512 fdff24659037d99ca37a15c2bc33a91e9864d2df20210c13230ab64c3c5ecd7aebefe5c7b3b316812d8f844ca38c297931d74d19a278bf986de80e2f0c54d223 WHIRLPOOL 94f092087f17b0694821ab1f7864fa80639c7daf73e6926d665365d624f46d69d1f74e0de4af901a399593bf52020311614c000d94160505a429728f0d3e2818
26 +DIST libxsd-frontend-2.0.0.tar.bz2 66784 SHA256 35ba30988c67bc4ce9278d869ec0a04305eabf55287456af34c66ebe3564bfda SHA512 8a296fdfe2e562237d46774b33ee82e8f67835b0869c03ffdf04570db1e6f398cf97734685d44c2207abbb73cea20b57e53c8fd80a121f98196c1c7d4bacbc68 WHIRLPOOL 44f75d2d394f3db4edf773b4f36f74982600f5e55a445c4d0e6eb6254c1150c3eaf18b87d343d1728eccb5f6f92cd8888d80f86a7dc01f513d476dda056e0f89
27
28 diff --git a/dev-cpp/libxsd-frontend/libxsd-frontend-2.0.0.ebuild b/dev-cpp/libxsd-frontend/libxsd-frontend-2.0.0.ebuild
29 new file mode 100644
30 index 00000000..5550137
31 --- /dev/null
32 +++ b/dev-cpp/libxsd-frontend/libxsd-frontend-2.0.0.ebuild
33 @@ -0,0 +1,88 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +
40 +inherit toolchain-funcs versionator
41 +
42 +DESCRIPTION="A compiler frontend for the W3C XML Schema definition language"
43 +HOMEPAGE="http://www.codesynthesis.com/projects/libxsd-frontend/"
44 +SRC_URI="http://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
48 +IUSE=""
49 +
50 +RDEPEND="
51 + >=dev-libs/xerces-c-3.0.0
52 + dev-libs/boost:=[threads]
53 + dev-cpp/libcutl"
54 +DEPEND="${RDEPEND}
55 + >=dev-util/build-0.3.10"
56 +
57 +src_configure() {
58 + mkdir -p \
59 + build/{ld,cxx/gnu} \
60 + build/import/lib{boost,cult,frontend-elements,xerces-c} || die
61 +
62 + cat >> build/cxx/configuration-dynamic.make <<- EOF || die
63 + cxx_id := gnu
64 + cxx_optimize := n
65 + cxx_debug := n
66 + cxx_rpath := n
67 + cxx_pp_extra_options :=
68 + cxx_extra_options := ${CXXFLAGS}
69 + cxx_ld_extra_options := ${LDFLAGS}
70 + cxx_extra_libs :=
71 + cxx_extra_lib_paths :=
72 + EOF
73 +
74 + cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF || die
75 + cxx_gnu := $(tc-getCXX)
76 + cxx_gnu_libraries :=
77 + cxx_gnu_optimization_options :=
78 + EOF
79 +
80 + cat >> build/ld/configuration-lib-dynamic.make <<- EOF || die
81 + ld_lib_type := shared
82 + EOF
83 +
84 + # boost
85 + cat >> build/import/libboost/configuration-dynamic.make <<- EOF || die
86 + libboost_installed := y
87 + libboost_system := y
88 + EOF
89 +
90 + # libcutl
91 + cat >> build/import/libcutl/configuration-dynamic.make <<- EOF || die
92 + libcutl_installed := y
93 + EOF
94 +
95 + # xerces-c
96 + cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF || die
97 + libxerces_c_installed := y
98 + EOF
99 +}
100 +
101 +src_compile() {
102 + emake verbose=1
103 +}
104 +
105 +src_install() {
106 + einstalldocs
107 +
108 + dolib.so xsd-frontend/libxsd-frontend.so
109 +
110 + # clean header dir of build files
111 + find xsd-frontend \( -iname '*.cxx' -o -iname 'makefile*' \
112 + -o -iname '*.o' -o -iname '*.d' -o -iname '*.m4' -o -iname '*.l' \
113 + -o -iname '*.cpp-options' -o -iname '*.so' \) -exec rm -rf '{}' + || die
114 + rm -rf xsd-frontend/arch || die
115 + doheader -r xsd-frontend
116 +}
117 +
118 +src_test() {
119 + export LD_LIBRARY_PATH="${S}/xsd-frontend:${LD_LIBRARY_PATH}"
120 + default
121 +}
122
123 diff --git a/dev-cpp/libxsd-frontend/metadata.xml b/dev-cpp/libxsd-frontend/metadata.xml
124 index acd00be..d4905c8 100644
125 --- a/dev-cpp/libxsd-frontend/metadata.xml
126 +++ b/dev-cpp/libxsd-frontend/metadata.xml
127 @@ -1,8 +1,8 @@
128 <?xml version="1.0" encoding="UTF-8"?>
129 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 <pkgmetadata>
131 - <maintainer type="person">
132 - <email>dev-zero@g.o</email>
133 - <name>Tiziano Müller</name>
134 - </maintainer>
135 + <maintainer type="project">
136 + <email>cpp@g.o</email>
137 + <name>Gentoo C++ Project</name>
138 + </maintainer>
139 </pkgmetadata>