|
From: <za...@us...> - 2008-12-05 11:01:19
|
Revision: 530
http://libmage.svn.sourceforge.net/libmage/?rev=530&view=rev
Author: zaufi
Date: 2008-12-05 11:01:14 +0000 (Fri, 05 Dec 2008)
Log Message:
-----------
add boost
Modified Paths:
--------------
gentoo-portage-overlay/trunk/dev-libs/boost/Manifest
gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest
gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-scm.ebuild
Added Paths:
-----------
gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.37.0.ebuild
gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.37.0.ebuild
Modified: gentoo-portage-overlay/trunk/dev-libs/boost/Manifest
===================================================================
--- gentoo-portage-overlay/trunk/dev-libs/boost/Manifest 2008-12-02 11:18:34 UTC (rev 529)
+++ gentoo-portage-overlay/trunk/dev-libs/boost/Manifest 2008-12-05 11:01:14 UTC (rev 530)
@@ -1,2 +1,4 @@
DIST boost_1_36_0.tar.bz2 28839275 RMD160 0ac38ee3c355c22fd5534bc806bf516890e5182d SHA1 b8f0f5d90b260aff995ef38fad4eee5e73d00810 SHA256 9a4a0cfbbd227c20a13519a2c41f2e707dc0d89e518a3c7bfcd381f7b7fbcdef
+DIST boost_1_37_0.tar.bz2 29435646 RMD160 3c4cf7eb97a8fb126e564ba529ed9edec8765185 SHA1 c0d0cf9ad8d954507824aed51a3e93e6a9da1d99 SHA256 d52ef49f70b1b9addc4e0d1a3a2a1966227f0d173c3301bac3e6d399eeac5472
EBUILD boost-1.36.0.ebuild 7020 RMD160 742fd6d4ff80d6624f657db8cb7def7b3f0a4be9 SHA1 55b6fc704d6675b9ce89f886fff928597bd94c62 SHA256 6050bacc15e0e2908664863e334fc7be373fccb21c67af2488b12d75e2fc43ff
+EBUILD boost-1.37.0.ebuild 7020 RMD160 742fd6d4ff80d6624f657db8cb7def7b3f0a4be9 SHA1 55b6fc704d6675b9ce89f886fff928597bd94c62 SHA256 6050bacc15e0e2908664863e334fc7be373fccb21c67af2488b12d75e2fc43ff
Added: gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.37.0.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.37.0.ebuild (rev 0)
+++ gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.37.0.ebuild 2008-12-05 11:01:14 UTC (rev 530)
@@ -0,0 +1,269 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.35.0-r1.ebuild,v 1.3 2008/06/16 04:49:39 jer Exp $
+
+inherit python flag-o-matic multilib toolchain-funcs versionator check-reqs
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+MY_P=${PN}_$(replace_all_version_separators _)
+PATCHSET_VERSION="${PV}-2"
+
+DESCRIPTION="Boost Libraries for C++"
+HOMEPAGE="http://www.boost.org/"
+SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2"
+# mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2"
+LICENSE="freedist Boost-1.0"
+SLOT="0"
+IUSE="debug doc expat icu mpi tools"
+
+RDEPEND="icu? ( >=dev-libs/icu-3.3 )
+ expat? ( dev-libs/expat )
+ mpi? ( || ( sys-cluster/openmpi sys-cluster/mpich2 ) )
+ sys-libs/zlib
+ virtual/python"
+DEPEND="${RDEPEND}
+ >=dev-util/boost-build-${PV}"
+
+S=${WORKDIR}/${MY_P}
+
+# Maintainer Information
+# ToDo:
+# - write a patch to support /dev/urandom on FreeBSD and OSX (see below)
+
+pkg_setup() {
+ if has test ${FEATURES} ; then
+ CHECKREQS_DISK_BUILD="1024"
+ check_reqs
+
+ ewarn "The tests may take several hours on a recent machine"
+ ewarn "but they will not fail (unless something weird happens ;-)"
+ ewarn "This is because the tests depend on the used compiler/-version"
+ ewarn "and the platform and upstream says that this is normal."
+ ewarn "If you are interested in the results, please take a look at the"
+ ewarn "generated results page:"
+ ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html"
+ ebeep 5
+
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+# EPATCH_SOURCE="${WORKDIR}/patches"
+# EPATCH_SUFFIX="patch"
+# epatch
+
+ # This enables building the boost.random library with /dev/urandom support
+ if ! use userland_Darwin ; then
+ mkdir -p libs/random/build
+ cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2
+ fi
+}
+
+generate_options() {
+ # Maintainer information:
+ # The debug-symbols=none and optimization=none
+ # are not official upstream flags but a Gentoo
+ # specific patch to make sure that all our
+ # CXXFLAGS/LDFLAGS are being respected.
+ # Using optimization=off would for example add
+ # "-O0" and override "-O2" set by the user.
+ # Please take a look at the boost-build ebuild
+ # for more infomration.
+
+ OPTIONS="gentoorelease"
+ use debug && OPTIONS="gentoodebug"
+
+ use icu && OPTIONS="${OPTIONS} -sICU_PATH=/usr"
+ if use expat ; then
+ OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)"
+ fi
+
+ if ! use mpi ; then
+ OPTIONS="${OPTIONS} --without-mpi"
+ fi
+
+ OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam --boost-build=/usr/share/boost-build"
+}
+
+generate_userconfig() {
+ einfo "Writing new user-config.jam"
+ python_version
+
+ local compiler compilerVersion compilerExecutable
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ compiler=darwin
+ compilerVersion=$(gcc-version)
+ compilerExecutable=$(tc-getCXX)
+ append-ldflags -ldl
+ else
+ compiler=gcc
+ compilerVersion=$(gcc-version)
+ compilerExecutable=$(tc-getCXX)
+ fi
+
+ cat > "${S}/user-config.jam" << __EOF__
+
+variant gentoorelease : release : <optimization>none <debug-symbols>none ;
+variant gentoodebug : debug : <optimization>none <debug-symbols>none ;
+
+using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
+using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ;
+
+__EOF__
+
+ if use mpi ; then
+ echo "using mpi ;" >> "${S}/user-config.jam"
+ fi
+}
+
+src_compile() {
+
+ NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
+
+ generate_userconfig
+ generate_options
+
+ elog "Using the following options to build: "
+ elog " ${OPTIONS}"
+
+ export BOOST_ROOT=${S}
+
+ bjam ${NUMJOBS} -q \
+ ${OPTIONS} \
+ threading=single,multi link=shared,static runtime-link=shared,static \
+ --prefix="${D}/usr" \
+ --layout=system \
+ || die "building boost failed"
+
+ if use tools; then
+ cd "${S}/tools/"
+ # We have to set optimization to -O0 or -O1 to work around a gcc-bug
+ # optimization=off adds -O0 to the compiler call and overwrites our settings.
+ bjam ${NUMJOBS} -q \
+ ${OPTIONS} \
+ --prefix="${D}/usr" \
+ --layout=system \
+ || die "building tools failed"
+ fi
+
+ if has test ${FEATURES} ; then
+ cd "${S}/tools/regression/build"
+ bjam -q \
+ ${OPTIONS} \
+ --prefix="${D}/usr" \
+ --layout=system \
+ || die "building regression test helpers failed"
+ fi
+
+}
+
+src_install () {
+
+ generate_options
+
+ export BOOST_ROOT=${S}
+
+ bjam -q \
+ ${OPTIONS} \
+ threading=single,multi link=shared,static runtime-link=shared,static \
+ --prefix="${D}/usr" \
+ --includedir="${D}/usr/include" \
+ --libdir="${D}/usr/$(get_libdir)" \
+ --layout=system \
+ install || die "install failed for options '${OPTIONS}'"
+
+ # Move the mpi.so to the right place
+ if use mpi; then
+ mkdir -p "${D}/usr/$(get_libdir)/python${PYVER}/site-packages"
+ mv "${D}/usr/$(get_libdir)/mpi.so" "${D}/usr/$(get_libdir)/python${PYVER}/site-packages"
+ fi
+
+ if use doc ; then
+ find libs -iname "test" -or -iname "src" | xargs rm -rf
+ dohtml \
+ -A pdf,txt,cpp \
+ *.{htm,html,png,css} \
+ -r doc more people wiki
+ insinto /usr/share/doc/${PF}/html
+ doins -r libs
+
+ # To avoid broken links
+ insinto /usr/share/doc/${PF}/html
+ doins LICENSE_1_0.txt
+
+ dosym /usr/include/boost /usr/share/doc/${PF}/html/boost
+ fi
+
+ cd "${D}/usr/$(get_libdir)"
+
+ # If built with debug enabled, all libraries get a 'd' postfix,
+ # this breaks linking other apps against boost (bug #181972)
+ if use debug ; then
+ for lib in $(ls -1 libboost_*) ; do
+ dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-d\././' -e 's/d\././' <<< ${lib})"
+ done
+ fi
+
+ for lib in $(ls -1 libboost_thread-mt.*) ; do
+ dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
+ done
+
+ if use tools; then
+ cd "${S}/dist"
+ dobin bin/*
+ insinto /usr
+ doins -r share
+ fi
+
+ if has test ${FEATURES} ; then
+ cd "${S}/status"
+ docinto status
+ dohtml *.{html,gif} ../boost.png
+ dodoc regress.log
+ fi
+}
+
+src_test() {
+ generate_options
+
+ export BOOST_ROOT=${S}
+
+ cd "${S}/status"
+
+ # Some of the test-checks seem to rely on regexps
+ export LC_ALL="C"
+
+ # The following is largely taken from tools/regression/run_tests.sh,
+ # but adapted to our needs.
+
+ # Run the tests & write them into a file for postprocessing
+ bjam \
+ ${OPTIONS} \
+ --dump-tests 2>&1 | tee regress.log
+
+ # Postprocessing
+ cat regress.log | "${S}/dist/bin/process_jam_log" --v2
+ if test $? != 0 ; then
+ die "Postprocessing the build log failed"
+ fi
+
+ cat > "${S}/status/comment.html" <<- __EOF__
+ <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p>
+__EOF__
+
+ # Generate the build log html summary page
+ "${S}/dist/bin/compiler_status" --v2 \
+ --comment "${S}/status/comment.html" "${S}" \
+ cs-$(uname).html cs-$(uname)-links.html
+ if test $? != 0 ; then
+ die "Generating the build log html summary page failed"
+ fi
+
+ # And do some cosmetic fixes :)
+ sed -i -e 's|../boost.png|boost.png|' *.html
+}
Modified: gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest
===================================================================
--- gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest 2008-12-02 11:18:34 UTC (rev 529)
+++ gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest 2008-12-05 11:01:14 UTC (rev 530)
@@ -1,2 +1,4 @@
DIST boost_1_36_0.tar.bz2 28839275 RMD160 0ac38ee3c355c22fd5534bc806bf516890e5182d SHA1 b8f0f5d90b260aff995ef38fad4eee5e73d00810 SHA256 9a4a0cfbbd227c20a13519a2c41f2e707dc0d89e518a3c7bfcd381f7b7fbcdef
+DIST boost_1_37_0.tar.bz2 29435646 RMD160 3c4cf7eb97a8fb126e564ba529ed9edec8765185 SHA1 c0d0cf9ad8d954507824aed51a3e93e6a9da1d99 SHA256 d52ef49f70b1b9addc4e0d1a3a2a1966227f0d173c3301bac3e6d399eeac5472
EBUILD boost-build-1.36.0.ebuild 2749 RMD160 c0d3eb8299e3b9b5f2c66eabffcaa71ad27b4614 SHA1 99901fd13df15a3af389017da08f9c38c0618c6a SHA256 bb5b8489f5c1dd508d622583210de09b8c2a1e324bac6ddfc700c92252402021
+EBUILD boost-build-1.37.0.ebuild 2749 RMD160 c0d3eb8299e3b9b5f2c66eabffcaa71ad27b4614 SHA1 99901fd13df15a3af389017da08f9c38c0618c6a SHA256 bb5b8489f5c1dd508d622583210de09b8c2a1e324bac6ddfc700c92252402021
Added: gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.37.0.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.37.0.ebuild (rev 0)
+++ gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.37.0.ebuild 2008-12-05 11:01:14 UTC (rev 530)
@@ -0,0 +1,94 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.35.0-r1.ebuild,v 1.1 2008/06/05 20:04:07 dev-zero Exp $
+
+inherit flag-o-matic toolchain-funcs versionator
+
+MY_PV=$(replace_all_version_separators _)
+
+DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
+HOMEPAGE="http://www.boost.org/tools/build/v2/index.html"
+SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="examples python"
+
+DEPEND="!<dev-libs/boost-1.36.0
+ python? ( dev-lang/python )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/boost_${MY_PV}/tools
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+# epatch "${FILESDIR}/${PV}-fix_broken_icu_build.patch"
+
+ # Remove stripping option
+ cd "${S}/jam/src"
+ sed -i \
+ -e 's/-s\b//' \
+ build.jam || die "sed failed"
+
+ # This patch allows us to fully control optimization
+ # and stripping flags when bjam is used as build-system
+ # We simply extend the optimization and debug-symbols feature
+ # with empty dummies called 'none'
+ cd "${S}/build/v2"
+ sed -i \
+ -e 's/\(off speed space\)/\1 none/' \
+ -e 's/\(debug-symbols : on off\)/\1 none/' \
+ tools/builtin.jam || die "sed failed"
+}
+
+src_compile() {
+ cd jam/src
+ local toolset
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ toolset=darwin
+ else
+ # Using boost's generic toolset here, which respects CC and CFLAGS
+ toolset=cc
+ fi
+
+ append-flags -fno-strict-aliasing
+
+ # The build.jam file for building bjam using a bootstrapped jam0 ignores
+ # the LDFLAGS env var (bug #209794). We have now two options:
+ # a) change the cc-target definition in build.jam to include separate compile
+ # and link targets to make it use the LDFLAGS var, or
+ # b) a simple dirty workaround by injecting the LDFLAGS in the LIBS env var
+ # (which should not be set by us).
+ if [[ -z "${LDFLAGS}" ]] ; then
+ CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) \
+ || die "building bjam failed"
+ else
+ LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} \
+ $(use_with python) || die "building bjam failed"
+ fi
+}
+
+src_install() {
+ dobin jam/src/bin.*/bjam
+
+ cd "${S}/build/v2"
+ insinto /usr/share/boost-build
+ doins -r boost-build.jam bootstrap.jam build-system.jam site-config.jam user-config.jam \
+ build kernel options tools util || die
+
+ dodoc doc/userman.pdf changes.txt hacking.txt release_procedure.txt \
+ notes/build_dir_option.txt notes/relative_source_paths.txt
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
+
+src_test() {
+ cd jam/test
+ ./test.sh || die "tests failed"
+}
Modified: gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-scm.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-scm.ebuild 2008-12-02 11:18:34 UTC (rev 529)
+++ gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-scm.ebuild 2008-12-05 11:01:14 UTC (rev 530)
@@ -16,7 +16,7 @@
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="adns gtk ipv6 lua portaudio gnutls gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux"
+IUSE="adns gtk ipv6 lua portaudio gnutls gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux ssl"
RDEPEND="zlib? ( sys-libs/zlib )
smi? ( net-libs/libsmi )
@@ -34,7 +34,8 @@
kerberos? ( virtual/krb5 )
portaudio? ( media-libs/portaudio )
lua? ( >=dev-lang/lua-5.1 )
- selinux? ( sec-policy/selinux-wireshark )"
+ selinux? ( sec-policy/selinux-wireshark )
+ ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.15.0
dev-lang/perl
@@ -93,27 +94,26 @@
fi
# dumpcap requires libcap, setuid-install requires dumpcap
- econf $(use_enable gtk gtk2) \
- $(use_enable profile profile-build) \
- $(use_with gnutls) \
- $(use_with gcrypt) \
- $(use_enable gtk wireshark) \
- $(use_enable ipv6) \
- $(use_enable threads) \
- $(use_with lua) \
- $(use_with adns) \
- $(use_with kerberos krb5) \
- $(use_with smi libsmi) \
- $(use_with pcap) \
- $(use_with zlib) \
- $(use_with pcre) \
- $(use_with portaudio) \
- $(use_with caps libcap) \
- $(use_enable pcap setuid-install) \
- --sysconfdir=/etc/wireshark \
- --disable-usr-local \
- --disable-warnings-as-errors \
- ${myconf} || die "econf failed"
+ econf $(use_enable profile profile-build) \
+ $(use_with gnutls) \
+ $(use_with gcrypt) \
+ $(use_enable gtk wireshark) \
+ $(use_enable ipv6) \
+ $(use_enable threads) \
+ $(use_with lua) \
+ $(use_with adns) \
+ $(use_with kerberos krb5) \
+ $(use_with smi libsmi) \
+ $(use_with pcap) \
+ $(use_with zlib) \
+ $(use_with pcre) \
+ $(use_with portaudio) \
+ $(use_with caps libcap) \
+ $(use_enable pcap setuid-install) \
+ --sysconfdir=/etc/wireshark \
+ --disable-usr-local \
+ --disable-warnings-as-errors \
+ ${myconf} || die "econf failed"
emake || die "emake failed"
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|