dev-cpp/xsd: New package from nest
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
285e686c9a
commit
96cac69dd2
1
dev-cpp/xsd/Manifest
Normal file
1
dev-cpp/xsd/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST xsd-4.0.0_p20210722.tar.gz 683286 BLAKE2B d3ff68f4afb10d51f77d601f77e9bde115d2d51abf7e1e94f5e51bac587eb74f39d2b58cddf72971792923ba8fd2edf3bbbd6fc3f011c1692933a6956db077f2 SHA512 3ec48a54f4ed2d21d3f2a28335818bf0a099c56e8bee10b893aa6e817f5bf1e0c61c2424658aedf455eadff2d31ecfd60068f21b4b0439f5b2a86a5060ef5319
|
21
dev-cpp/xsd/metadata.xml
Normal file
21
dev-cpp/xsd/metadata.xml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A cross-platform W3C XML Schema to C++ data binding compile.
|
||||
Provided with an XML instance specification (XML Schema), it generates
|
||||
C++ classes that represent the given vocabulary as well as XML parsing
|
||||
and serialization code.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>mailto:xsd-users@codesynthesis.com</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
64
dev-cpp/xsd/xsd-4.0.0_p20210722.ebuild
Normal file
64
dev-cpp/xsd/xsd-4.0.0_p20210722.ebuild
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multiprocessing toolchain-funcs vcs-snapshot
|
||||
|
||||
MY_PV="4a6e690" # last version without requirements of build2-0.14
|
||||
|
||||
DESCRIPTION="A cross-platform W3C XML Schema to C++ data binding compiler"
|
||||
HOMEPAGE="https://www.codesynthesis.com/products/xsd/"
|
||||
SRC_URI="https://git.codesynthesis.com/cgit/${PN}/${PN}/snapshot/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples zlib"
|
||||
|
||||
RDEPEND="dev-libs/xerces-c
|
||||
dev-libs/boost:=
|
||||
dev-cpp/libcutl
|
||||
dev-cpp/libxsd-frontend
|
||||
zlib? ( sys-libs/zlib:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-util/build2
|
||||
dev-util/cli
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
src_configure() {
|
||||
local myconfigargs=(
|
||||
config.cxx="$(tc-getCXX)"
|
||||
config.cxx.coptions="${CXXFLAGS}"
|
||||
config.cxx.loptions="${LDFLAGS}"
|
||||
config.bin.ar="$(tc-getAR)"
|
||||
config.bin.ranlib="$(tc-getRANLIB)"
|
||||
config.install.lib="exec_root/$(get_libdir)"
|
||||
config.install.doc="data_root/share/doc/${PF}"
|
||||
)
|
||||
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake "${myconfigargs[@]}" configure: libxsd/ xsd/
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake libxsd/ xsd/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake config.install.root="${ED}/usr" install: libxsd/ xsd/
|
||||
|
||||
# Renaming binary/manpage to avoid collision with mono-2.0's xsd/xsd2
|
||||
mv "${ED}"/usr/bin/xsd{,cxx} \
|
||||
|| die "mv for xsd failed"
|
||||
mv "${ED}"/usr/share/man/man1/xsd{,cxx}.1 \
|
||||
|| die "mv for man failed"
|
||||
}
|
Loading…
Reference in a new issue