summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Mueller <dev-zero@gentoo.org>2008-08-25 23:16:05 +0200
committerTiziano Mueller <dev-zero@gentoo.org>2008-08-25 23:16:05 +0200
commitcdf643e4bb9ea818f7157088247ac7fe0f07708a (patch)
tree1edd37b206a202cc8a87e3117aa538d3395822de /dev-cpp
parentAdded openlierox, a version bump for wormux (patch currently broken) and an e... (diff)
downloaddev-zero-cdf643e4bb9ea818f7157088247ac7fe0f07708a.tar.gz
dev-zero-cdf643e4bb9ea818f7157088247ac7fe0f07708a.tar.bz2
dev-zero-cdf643e4bb9ea818f7157088247ac7fe0f07708a.zip
Added updated x11-drivers/synaptics (bug #235705)
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/xsd/xsd-3.2.0_beta1.ebuild101
1 files changed, 101 insertions, 0 deletions
diff --git a/dev-cpp/xsd/xsd-3.2.0_beta1.ebuild b/dev-cpp/xsd/xsd-3.2.0_beta1.ebuild
new file mode 100644
index 0000000..4cab1ef
--- /dev/null
+++ b/dev-cpp/xsd/xsd-3.2.0_beta1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs eutils
+
+MY_P="${P/_beta/.b}"
+
+DESCRIPTION="An open-source, cross-platform W3C XML Schema to C++ data binding compiler."
+HOMEPAGE="http://www.codesynthesis.com/products/xsd/"
+SRC_URI="http://www.codesynthesis.com/download/${PN}/${PV%.+}/${MY_P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+RDEPEND=">=dev-libs/xerces-c-2.6
+ dev-libs/boost
+ >=dev-cpp/libcult-1.4.2
+ >=dev-cpp/libxsd-frontend-1.15.0
+ >=dev-cpp/libbackend-elements-1.6.1"
+DEPEND="${RDEPEND}
+ dev-util/build"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/3.1.0-disable_examples_and_tests.patch"
+
+ sed -i \
+ -e '/GPLv2/d' \
+ -e '/LICENSE/d' \
+ -e "s|\$(install_doc_dir)/xsd|\$(install_doc_dir)/xsd-${PV}|" \
+ -e "s|\$(install_doc_dir)/libxsd|\$(install_doc_dir)/libxsd-${PV}|" \
+ makefile || die "sed failed"
+}
+
+src_compile() {
+ mkdir -p \
+ build/cxx/gnu \
+ build/import/lib{boost,cult,backend-elements,xerces-c,xsd-frontend}
+
+ cat >> build/configuration-dynamic.make <<- EOF
+xsd_with_ace := n
+xsd_with_xdr := y
+xsd_with_dbxml := n
+xsd_with_boost_date_time := y
+xsd_with_boost_serialization := y
+ EOF
+
+ cat >> build/cxx/configuration-dynamic.make <<- EOF
+cxx_id := gnu
+cxx_optimize := n
+cxx_debug := n
+cxx_rpath := n
+cxx_pp_extra_options :=
+cxx_extra_options := ${CXXFLAGS}
+cxx_ld_extra_options := ${LDFLAGS}
+cxx_extra_libs :=
+cxx_extra_lib_paths :=
+ EOF
+
+ cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
+cxx_gnu := $(tc-getCXX)
+cxx_gnu_libraries :=
+cxx_gnu_optimization_options :=
+ EOF
+
+ cat >> build/import/libcult/configuration-dynamic.make <<- EOF
+libcult_installed := y
+ EOF
+
+ cat >> build/import/libboost/configuration-dynamic.make <<- EOF
+libboost_installed := y
+ EOF
+
+ cat >> build/import/libbackend-elements/configuration-dynamic.make <<- EOF
+libbackend_elements_installed := y
+ EOF
+
+ cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF
+libxerces_c_installed := y
+ EOF
+
+ cat >> build/import/libxsd-frontend/configuration-dynamic.make <<- EOF
+libxsd_frontend_installed := y
+ EOF
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake install_prefix="${D}/usr" install || die "emake install failed"
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}