dev-util/{boost-build,ctags,dejagnu,gob,gperf,intltool}: import from portage

Just copying the ebuilds from portage/ so hopefully no functional changes.

BUG=chromium-os:26016
TEST=`cbuildbot arm-generic-full` works
TEST=build_packages+build_image for x86-alex boots

Change-Id: I2f15a17efcc3ef1ac08ba6b59074fc9236199055
Reviewed-on: https://gerrit.chromium.org/gerrit/15593
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-02-01 18:33:39 -05:00 committed by Gerrit
parent 328fce31b7
commit b7e3540857
16 changed files with 391 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST boost_1_42_0.tar.bz2 33426755 RMD160 90cea6aaa35f22b97e6eb3f5879ca9fe21098349 SHA1 3ce3bb1a1bed504635287017f9e628597b409e7b SHA256 4b1eb95bd250ce15ac66435d6167f225b072b0d3a7eb72477a31847a9ca9e609

View File

@ -0,0 +1,111 @@
# Copyright 1999-2010 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.42.0.ebuild,v 1.1 2010/03/03 12:32:08 djc Exp $
EAPI="2"
inherit flag-o-matic toolchain-funcs versionator
MY_PV=$(replace_all_version_separators _)
MAJOR_PV="$(replace_all_version_separators _ $(get_version_component_range 1-2))"
DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
LICENSE="Boost-1.0"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE="examples python"
DEPEND="!<dev-libs/boost-1.34.0
!<=dev-util/boost-build-1.35.0-r1
python? ( dev-lang/python )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/boost_${MY_PV}/tools"
pkg_setup() {
ewarn "Compilation of boost-build is known to break if {C,LD}FLAGS contain"
ewarn "extra white space (bug 293652)"
}
src_unpack() {
tar xjpf "${DISTDIR}/${A}" boost_${MY_PV}/tools/{jam,build/v2} || die
}
src_prepare() {
epatch "${FILESDIR}/boost-1.42-fix-mpich2-detection.patch"
# Remove stripping option
cd "${S}/jam/src"
sed -i -e 's|-s\b||' \
build.jam || die "sed failed"
# Force regeneration
rm jambase.c
# 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
# For slotting
sed -i \
-e "s|/usr/share/boost-build|/usr/share/boost-build-${MAJOR_PV}|" \
Jambase || die "sed failed"
# 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() {
newbin jam/src/bin.*/bjam bjam-${MAJOR_PV}
cd "${S}/build/v2"
insinto /usr/share/boost-build-${MAJOR_PV}
doins -r boost-build.jam bootstrap.jam build-system.jam site-config.jam user-config.jam \
build kernel options tools util || die
dodoc 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 example
fi
}
src_test() {
cd jam/test
./test.sh || die "tests failed"
}

View File

@ -0,0 +1,35 @@
Index: tools/build/v2/tools/mpi.jam
===================================================================
--- tools/build/v2/tools/mpi.jam (revision 57744)
+++ tools/build/v2/tools/mpi.jam (working copy)
@@ -156,14 +156,27 @@
# into a feature.
local match = [ MATCH "^(-.)(.*)" : $(cmdline) ] ;
local matched ;
- if $(match) && $(match[2]) {
+ if $(match) && $(match[2]) {
local prefix = $(match[1]) ;
if $(feature_kinds$(prefix)) {
local name = $(feature_kinds$(prefix)) ;
local add = [ add_feature $(prefix) $(name) $(cmdline) ] ;
if $(add) {
- result += $(add[1]) ;
+
+ if $(add[1]) = <find-shared-library>pthread
+ {
+ # Uhm. It's not really nice that this MPI implementation
+ # uses -lpthread as opposed to -pthread. We do want to
+ # set <threading>multi, instead of -lpthread.
+ result += "<threading>multi" ;
+ MPI_EXTRA_REQUIREMENTS += "<threading>multi" ;
+ }
+ else
+ {
+ result += $(add[1]) ;
+ }
+
cmdline = $(add[2]) ;
matched = yes ;
}

View File

@ -0,0 +1,2 @@
DIST ctags-5.7.tar.gz 287496 RMD160 8d6d9c0a3e056abfb6356852808afe1c99f9224c SHA1 f7e435286c25181d6cb28ca1ac2d4ba63507a82d SHA256 10623bbcc9b0cb60124271ce83111733a1043ab022d51cfcd2c0e0c953bd8b58
DIST ctags-ada-mode-4.3.3.tar.bz2 14086 RMD160 55f777901443e3f2dc990f05a2a866892d38cc18 SHA1 2b69babe02f9d2cb6aeb9ab83cde4a722fe7c4bd SHA256 f0ef3ad82654ed5fe4d4e12ec64c7988d7cd40cd7dc67c89eaac06869c5a36fa

View File

@ -0,0 +1,62 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ctags/ctags-5.7.ebuild,v 1.10 2008/11/04 09:37:40 vapier Exp $
inherit eutils
DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
HOMEPAGE="http://ctags.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
ada? ( mirror://sourceforge/gnuada/ctags-ada-mode-4.3.3.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="ada"
DEPEND="app-admin/eselect-ctags"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-5.6-ebuilds.patch"
# enabling Ada support
if use ada; then
cp "${WORKDIR}/${PN}-ada-mode-4.3.3/ada.c" "${S}"
epatch "${FILESDIR}/${PN}-ada.patch"
fi
}
src_compile() {
econf \
--with-posix-regex \
--without-readlib \
--disable-etags \
--enable-tmpdir=/tmp \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
einstall || die "einstall failed"
# namepace collision with X/Emacs-provided /usr/bin/ctags -- we
# rename ctags to exuberant-ctags (Mandrake does this also).
mv "${D}"/usr/bin/{ctags,exuberant-ctags}
mv "${D}"/usr/share/man/man1/{ctags,exuberant-ctags}.1
dodoc FAQ NEWS README
dohtml EXTENDING.html ctags.html
}
pkg_postinst() {
eselect ctags update
elog "You can set the version to be started by /usr/bin/ctags through"
elog "the ctags eselect module. \"man ctags.eselect\" for details."
}
pkg_postrm() {
eselect ctags update
}

View File

@ -0,0 +1,22 @@
diff -ur ctags-5.6/sh.c ctags-5.6-ebuild/sh.c
--- ctags-5.6/sh.c 2006-05-30 00:37:13.000000000 -0400
+++ ctags-5.6-ebuild/sh.c 2006-10-07 17:37:31.000000000 -0400
@@ -7,7 +7,8 @@
* GNU General Public License.
*
* This module contains functions for generating tags for scripts for the
-* Bourne shell (and its derivatives, the Korn and Z shells).
+* Bourne shell (and its derivatives, the Korn and Z shells), along with some
+* specialised kinds of shell scripts (Gentoo ebuilds and eclasses).
*/
/*
@@ -102,7 +103,7 @@
extern parserDefinition* ShParser (void)
{
static const char *const extensions [] = {
- "sh", "SH", "bsh", "bash", "ksh", "zsh", NULL
+ "sh", "SH", "bsh", "bash", "ksh", "zsh", "ebuild", "eclass", NULL
};
parserDefinition* def = parserNew ("Sh");
def->kinds = ShKinds;

View File

@ -0,0 +1,30 @@
diff -ru ctags-5.6-orig/parsers.h ctags-5.6/parsers.h
--- ctags-5.6-orig/parsers.h 2006-05-30 06:37:12.000000000 +0200
+++ ctags-5.6/parsers.h 2007-06-16 18:38:31.000000000 +0200
@@ -16,6 +16,7 @@
/* Add the name of any new parser definition function here */
#define PARSER_LIST \
+ AdaParser, \
AsmParser, \
AspParser, \
AwkParser, \
diff -ru ctags-5.6-orig/source.mak ctags-5.6/source.mak
--- ctags-5.6-orig/source.mak 2004-06-10 05:01:17.000000000 +0200
+++ ctags-5.6/source.mak 2007-06-16 18:37:40.000000000 +0200
@@ -8,6 +8,7 @@
strlist.h vstring.h
SOURCES = \
+ ada.c \
args.c \
asm.c \
asp.c \
@@ -58,6 +59,7 @@
argproc.c mac.c qdos.c
OBJECTS = \
+ ada.$(OBJEXT) \
args.$(OBJEXT) \
asm.$(OBJEXT) \
asp.$(OBJEXT) \

View File

@ -0,0 +1 @@
DIST dejagnu-1.4.4.tar.gz 1080346 RMD160 5f00f4ce6ce24aad611be500e80c40fc816dc66a SHA1 fd82ffd396eba5b595f76d2f4a068cb7fcc6cffb SHA256 d0fbedef20fb0843318d60551023631176b27ceb1e11de7468a971770d0e048d

View File

@ -0,0 +1,36 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild,v 1.16 2010/01/15 21:30:53 fauli Exp $
inherit eutils
DESCRIPTION="framework for testing other programs"
HOMEPAGE="http://www.gnu.org/software/dejagnu/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
IUSE="doc"
DEPEND="dev-lang/tcl
dev-tcltk/expect"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/dejagnu-ignore-libwarning.patch
}
src_test() {
# if you dont have dejagnu emerged yet, you cant
# run the tests ... crazy aint it :)
type -p runtest || return 0
make check || die "check failed :("
}
src_install() {
emake -j1 install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README TODO
use doc && dohtml -r doc/html/
}

View File

@ -0,0 +1,23 @@
dejagnu/ChangeLog
* lib/target.exp (prune_warnings): Correct pic/PIC regexp.
Ignore incompatible library warning.
Index: dejagnu/lib/target.exp
===================================================================
RCS file: /cvs/src/src/dejagnu/lib/target.exp,v
retrieving revision 1.12
diff -u -p -r1.12 target.exp
--- dejagnu/lib/target.exp 21 Apr 2002 08:47:07 -0000 1.12
+++ dejagnu/lib/target.exp 9 Jun 2003 07:34:06 -0000
@@ -279,7 +279,10 @@ proc prune_warnings { text } {
regsub -all "(^|\n)\[^\n\]*: warning: as it has already been specified\[^\n\]*" $text "" text
# Cygwin cc1 warns about -fpic and -fPIC
- regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text "" text
+ regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC) ignored for target \[^\n\]*" $text "" text
+
+ # Ignore linker warning when searching 64bit libraries in /lib.
+ regsub -all "(^|\n)\[^\n\]*: skipping incompatible \[^\n\]* when searching for \[^\n\]*" $text "" text
# It might be tempting to get carried away and delete blank lines, etc.
# Just delete *exactly* what we're ask to, and that's it.

View File

@ -0,0 +1 @@
DIST gob2-2.0.15.tar.bz2 208071 RMD160 92ccd5dd2ed75d1c0bfb261769d8159c162220c8 SHA1 4ff67524d8edf9a53b3f38773af82fceadcbe65e SHA256 4b439572c75c3ee5d59c4ba86c4a09e3264b8fc77b577117cfc6f44b3789a9e2

View File

@ -0,0 +1,26 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/gob/gob-2.0.15.ebuild,v 1.9 2008/09/27 16:36:38 armin76 Exp $
inherit gnome2
MY_PN=gob2
MY_P=${MY_PN}-${PV}
S=${WORKDIR}/${MY_P}
PVP=(${PV//[-\._]/ })
DESCRIPTION="Preprocessor for making GTK+ objects with inline C code"
HOMEPAGE="http://www.5z.com/jirka/gob.html"
SRC_URI="mirror://gnome/sources/${MY_PN}/${PVP[0]}.${PVP[1]}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
IUSE=""
RDEPEND=">=dev-libs/glib-2"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/flex"
DOCS="AUTHORS ChangeLog NEWS README TODO"

View File

@ -1 +1,2 @@
DIST gperf-3.0.3.tar.gz 865088 RMD160 8e48ce2cdeed599f7905090fb0d5c5113c168126 SHA1 3c535d2727eb0dca10ca87cefa03720a8280c7a2 SHA256 63287527c8d9e27e801cf0804436f3494bd569db05d49dcdd2a942ae72fa9055
DIST gperf-3.0.4.tar.gz 983500 RMD160 aeaed644501d2424f88d203dd68c997b6a90f116 SHA1 e32d4aff8f0c730c9a56554377b2c6d82d0951b8 SHA256 767112a204407e62dbc3106647cf839ed544f3cf5d0f0523aaa2508623aad63e

View File

@ -0,0 +1,17 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/gperf/gperf-3.0.3.ebuild,v 1.8 2008/12/07 12:13:50 vapier Exp $
DESCRIPTION="A perfect hash function generator"
HOMEPAGE="http://www.gnu.org/software/gperf/gperf.html"
SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
src_install() {
emake DESTDIR="${D}" htmldir=/usr/share/doc/${PF}/html install || die
dodoc AUTHORS ChangeLog NEWS README
}

View File

@ -0,0 +1 @@
DIST intltool-0.41.0.tar.gz 136529 RMD160 26b88ff1a07cc9b62338ede35ad892d47ac7721f SHA1 6a42075e8ef23d171882c43d68081420d5be6798 SHA256 80ee34556aed1c7cbd04b274324e3bc52810ce74849b5dab7258d3549d8235ea

View File

@ -0,0 +1,22 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/intltool/intltool-0.41.0.ebuild,v 1.1 2010/02/17 21:13:01 ssuominen Exp $
EAPI=2
DESCRIPTION="Internationalization Tool Collection"
HOMEPAGE="http://edge.launchpad.net/intltool/"
SRC_URI="http://edge.launchpad.net/intltool/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND=">=dev-lang/perl-5.8.1
dev-perl/XML-Parser"
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS README TODO doc/I18N-HOWTO || die
}