summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Mueller <dev-zero@gentoo.org>2008-08-17 07:24:22 +0200
committerTiziano Mueller <dev-zero@gentoo.org>2008-08-17 07:24:22 +0200
commitcfca9e8961f5d76a4e06fa30c8c4f08735174ab9 (patch)
tree8ca6c4cf6515362b8d0edebd89c36ffb6fe1637f /dev-cpp
parentUpdated the kolpackov libs (diff)
downloaddev-zero-cfca9e8961f5d76a4e06fa30c8c4f08735174ab9.tar.gz
dev-zero-cfca9e8961f5d76a4e06fa30c8c4f08735174ab9.tar.bz2
dev-zero-cfca9e8961f5d76a4e06fa30c8c4f08735174ab9.zip
ahem, was a bit tired :)
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/libbackend-elements/libbackend-elements-1.6.1.ebuild73
-rw-r--r--dev-cpp/libcult/libcult-1.4.2.ebuild78
-rw-r--r--dev-cpp/libfrontend-elements/libfrontend-elements-1.1.1.ebuild71
-rw-r--r--dev-cpp/libxsd-frontend/libxsd-frontend-1.15.0.ebuild88
-rw-r--r--dev-cpp/xsd/xsd-3.2.0b1.ebuild97
5 files changed, 407 insertions, 0 deletions
diff --git a/dev-cpp/libbackend-elements/libbackend-elements-1.6.1.ebuild b/dev-cpp/libbackend-elements/libbackend-elements-1.6.1.ebuild
new file mode 100644
index 0000000..e6eeeba
--- /dev/null
+++ b/dev-cpp/libbackend-elements/libbackend-elements-1.6.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+DESCRIPTION="A collection of elementary building blocks for implementing compiler backends in c++."
+HOMEPAGE="http://kolpackov.net/projects/libbackend-elements/"
+SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/${PV%.?}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-cpp/libcult-1.4.2
+ dev-libs/boost"
+DEPEND="${RDEPEND}
+ dev-util/build"
+
+src_compile() {
+ mkdir -p build/{c,cxx/gnu,import/libboost,import/libcult}
+
+ cat >> build/c/configuration-lib-dynamic.make <<- EOF
+c_lib_type := shared
+ 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/libboost/configuration-dynamic.make <<- EOF
+libboost_installed := y
+ EOF
+
+ cat >> build/import/libcult/configuration-dynamic.make <<- EOF
+libcult_installed := y
+ EOF
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ find backend-elements -iname "*.cxx" \
+ -o -iname "makefile" \
+ -o -iname "*.o" -o -iname "*.d" \
+ -o -iname "*.m4" -o -iname "*.l" \
+ -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
+ rm -rf backend-elements/arch
+
+ insinto /usr/include
+ doins -r backend-elements
+
+ dodoc NEWS README
+ dohtml -A xhtml -r documentation/*
+}
+
+src_test() {
+ emake test || die "tests failed"
+}
diff --git a/dev-cpp/libcult/libcult-1.4.2.ebuild b/dev-cpp/libcult/libcult-1.4.2.ebuild
new file mode 100644
index 0000000..60f42f5
--- /dev/null
+++ b/dev-cpp/libcult/libcult-1.4.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A collection of C++ libraries"
+HOMEPAGE="http://kolpackov.net/projects/libcult/"
+SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/${PV%.?}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+DEPEND="dev-util/build"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+# epatch "${FILESDIR}/${PV}-missing_includes.patch"
+}
+
+src_compile() {
+ mkdir -p build/{c,cxx/gnu}
+
+ cat >> build/c/configuration-lib-dynamic.make <<- EOF
+c_lib_type := shared
+ EOF
+
+ cat >> build/configuration-dynamic.make <<- EOF
+cult_dr := y
+cult_threads := y
+cult_network := 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
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dolib.so cult/libcult.so
+
+ find cult -iname "*.cxx" \
+ -o -iname "makefile" \
+ -o -iname "*.o" -o -iname "*.d" \
+ -o -iname "*.m4" -o -iname "*.l" \
+ -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
+ rm -rf cult/arch
+
+ insinto /usr/include
+ doins -r cult
+
+ dodoc NEWS README
+ dohtml -A xhtml -r documentation/*
+
+ if use examples ; then
+ # preserving symlinks in the examples
+ cp -dpR examples "${D}/usr/share/doc/${PF}"
+ fi
+}
diff --git a/dev-cpp/libfrontend-elements/libfrontend-elements-1.1.1.ebuild b/dev-cpp/libfrontend-elements/libfrontend-elements-1.1.1.ebuild
new file mode 100644
index 0000000..3272928
--- /dev/null
+++ b/dev-cpp/libfrontend-elements/libfrontend-elements-1.1.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+DESCRIPTION="A collection of elementary building blocks for implementing compiler frontends in c++."
+HOMEPAGE="http://kolpackov.net/projects/libfrontend-elements/"
+SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/${PV%.?}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+RDEPEND=">=dev-cpp/libcult-1.4.2"
+DEPEND="${RDEPEND}
+ dev-util/build"
+
+src_compile() {
+ mkdir -p build/{c,cxx/gnu,import/libcult}
+
+ cat >> build/c/configuration-lib-dynamic.make <<- EOF
+c_lib_type := shared
+ 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
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dolib.so frontend-elements/libfrontend-elements.so
+
+ find frontend-elements -iname "*.cxx" \
+ -o -iname "makefile" \
+ -o -iname "*.o" -o -iname "*.d" \
+ -o -iname "*.m4" -o -iname "*.l" \
+ -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
+ rm -rf frontend-elements/arch
+
+ insinto /usr/include
+ doins -r frontend-elements
+
+ dodoc NEWS README
+ dohtml -A xhtml -r documentation/*
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/dev-cpp/libxsd-frontend/libxsd-frontend-1.15.0.ebuild b/dev-cpp/libxsd-frontend/libxsd-frontend-1.15.0.ebuild
new file mode 100644
index 0000000..618082f
--- /dev/null
+++ b/dev-cpp/libxsd-frontend/libxsd-frontend-1.15.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+DESCRIPTION="A compiler frontend for the W3C XML Schema definition language."
+HOMEPAGE="http://kolpackov.net/projects/libxsd-frontend/"
+SRC_URI="http://www.codesynthesis.com/download/${PN}/${PV%.?}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-libs/xerces-c-2.6
+ dev-libs/boost
+ >=dev-cpp/libcult-1.4.2
+ >=dev-cpp/libfrontend-elements-1.1.1"
+DEPEND="${RDEPEND}
+ dev-util/build"
+
+BUILDDIR="${WORKDIR}/build"
+
+src_compile() {
+ mkdir -p \
+ build/{c,cxx/gnu} \
+ build/import/lib{boost,cult,frontend-elements,xerces-c}
+
+ cat >> build/c/configuration-lib-dynamic.make <<- EOF
+c_lib_type := shared
+ 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/libfrontend-elements/configuration-dynamic.make <<- EOF
+libfrontend_elements_installed := y
+ EOF
+
+ cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF
+libxerces_c_installed := y
+ EOF
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dolib.so xsd-frontend/libxsd-frontend.so
+
+ find xsd-frontend -iname "*.cxx" \
+ -o -iname "makefile" \
+ -o -iname "*.o" -o -iname "*.d" \
+ -o -iname "*.m4" -o -iname "*.l" \
+ -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
+ rm -rf xsd-frontend/arch
+
+ insinto /usr/include
+ doins -r xsd-frontend
+
+ dodoc NEWS README
+}
+
+src_test() {
+ LDPATH="${S}/xsd-frontend:${LDPATH}" emake test || die "tests failed"
+}
diff --git a/dev-cpp/xsd/xsd-3.2.0b1.ebuild b/dev-cpp/xsd/xsd-3.2.0b1.ebuild
new file mode 100644
index 0000000..bce9afb
--- /dev/null
+++ b/dev-cpp/xsd/xsd-3.2.0b1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs eutils
+
+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%.+}/${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"
+
+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 := true
+ 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 := true
+ 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 := true
+ 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
+}