|
From: <za...@us...> - 2008-08-15 13:02:41
|
Revision: 437
http://libmage.svn.sourceforge.net/libmage/?rev=437&view=rev
Author: zaufi
Date: 2008-08-15 13:02:34 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
add boost 1.36 ebuilds
Modified Paths:
--------------
gentoo-portage-overlay/trunk/net-analyzer/wireshark/Manifest
gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-9999.ebuild
Added Paths:
-----------
gentoo-portage-overlay/trunk/dev-libs/
gentoo-portage-overlay/trunk/dev-libs/boost/
gentoo-portage-overlay/trunk/dev-libs/boost/Manifest
gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.36.0.ebuild
gentoo-portage-overlay/trunk/dev-util/
gentoo-portage-overlay/trunk/dev-util/boost-build/
gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest
gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.36.0.ebuild
Removed Paths:
-------------
gentoo-portage-overlay/trunk/sets/files.rel
Added: gentoo-portage-overlay/trunk/dev-libs/boost/Manifest
===================================================================
--- gentoo-portage-overlay/trunk/dev-libs/boost/Manifest (rev 0)
+++ gentoo-portage-overlay/trunk/dev-libs/boost/Manifest 2008-08-15 13:02:34 UTC (rev 437)
@@ -0,0 +1,2 @@
+DIST boost_1_36_0.tar.bz2 28839275 RMD160 0ac38ee3c355c22fd5534bc806bf516890e5182d SHA1 b8f0f5d90b260aff995ef38fad4eee5e73d00810 SHA256 9a4a0cfbbd227c20a13519a2c41f2e707dc0d89e518a3c7bfcd381f7b7fbcdef
+EBUILD boost-1.36.0.ebuild 7020 RMD160 742fd6d4ff80d6624f657db8cb7def7b3f0a4be9 SHA1 55b6fc704d6675b9ce89f886fff928597bd94c62 SHA256 6050bacc15e0e2908664863e334fc7be373fccb21c67af2488b12d75e2fc43ff
Added: gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.36.0.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.36.0.ebuild (rev 0)
+++ gentoo-portage-overlay/trunk/dev-libs/boost/boost-1.36.0.ebuild 2008-08-15 13:02:34 UTC (rev 437)
@@ -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
+}
Added: gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest
===================================================================
--- gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest (rev 0)
+++ gentoo-portage-overlay/trunk/dev-util/boost-build/Manifest 2008-08-15 13:02:34 UTC (rev 437)
@@ -0,0 +1,2 @@
+DIST boost_1_36_0.tar.bz2 28839275 RMD160 0ac38ee3c355c22fd5534bc806bf516890e5182d SHA1 b8f0f5d90b260aff995ef38fad4eee5e73d00810 SHA256 9a4a0cfbbd227c20a13519a2c41f2e707dc0d89e518a3c7bfcd381f7b7fbcdef
+EBUILD boost-build-1.36.0.ebuild 2749 RMD160 c0d3eb8299e3b9b5f2c66eabffcaa71ad27b4614 SHA1 99901fd13df15a3af389017da08f9c38c0618c6a SHA256 bb5b8489f5c1dd508d622583210de09b8c2a1e324bac6ddfc700c92252402021
Added: gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.36.0.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.36.0.ebuild (rev 0)
+++ gentoo-portage-overlay/trunk/dev-util/boost-build/boost-build-1.36.0.ebuild 2008-08-15 13:02:34 UTC (rev 437)
@@ -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/Manifest
===================================================================
--- gentoo-portage-overlay/trunk/net-analyzer/wireshark/Manifest 2008-08-11 15:09:17 UTC (rev 436)
+++ gentoo-portage-overlay/trunk/net-analyzer/wireshark/Manifest 2008-08-15 13:02:34 UTC (rev 437)
@@ -1,2 +1,2 @@
AUX wireshark-except-double-free.diff 664 RMD160 2b61f03f5148975f6438351c11de18a500deabc5 SHA1 0239e19ba0ebd2cfb4ab4987a8a4c56646cd9250 SHA256 dc02a5f3e4bdbd128a2ba08f38880358f747661a93ca0b3fe1918c67b255c369
-EBUILD wireshark-9999.ebuild 5470 RMD160 0dfa2394dc365c2850dd9301429db75a5754fb85 SHA1 cd938fedf2a15a60a45db459e5a7ad9be2ee646f SHA256 50103cab31adea57cfb1d49b74c430d2de70dd43c6a94d4c289d989811b1bbf6
+EBUILD wireshark-9999.ebuild 5510 RMD160 63c23f634a5180fc87205c9375f9c97b233aecfd SHA1 31f14438dac14b7b98376102443a4adbfee7a130 SHA256 c7516eed3d5f5acbe92c20712ba966e1a0023f35e690673a20a2e5124b76cbb5
Modified: gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-9999.ebuild
===================================================================
--- gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-9999.ebuild 2008-08-11 15:09:17 UTC (rev 436)
+++ gentoo-portage-overlay/trunk/net-analyzer/wireshark/wireshark-9999.ebuild 2008-08-15 13:02:34 UTC (rev 437)
@@ -10,8 +10,6 @@
ESVN_PROJECT="wireshark"
ESVN_BOOTSTRAP="./autogen.sh"
-IUSE="fltk odbc doc sqlite3 excel postgres"
-
DESCRIPTION="A network protocol analyzer formerly known as ethereal"
HOMEPAGE="http://www.wireshark.org/"
@@ -113,6 +111,8 @@
$(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"
Deleted: gentoo-portage-overlay/trunk/sets/files.rel
===================================================================
--- gentoo-portage-overlay/trunk/sets/files.rel 2008-08-11 15:09:17 UTC (rev 436)
+++ gentoo-portage-overlay/trunk/sets/files.rel 2008-08-15 13:02:34 UTC (rev 437)
@@ -1 +0,0 @@
-relocate "`get_files`"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|