From c3e2aa44e060b4f8f5e3c0022ba2dc120d0b54f1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Feb 2012 18:00:55 -0500 Subject: [PATCH] dev-lang/{ruby,swig,tcl}: 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: Id0fd34f497440b90da07392e9a78c3e98bae3fc1 Reviewed-on: https://gerrit.chromium.org/gerrit/15502 Reviewed-by: David James Tested-by: Mike Frysinger Commit-Ready: Mike Frysinger --- .../portage-stable/dev-lang/ruby/Manifest | 2 + .../dev-lang/ruby/ruby-1.8.7_p249.ebuild | 180 ++++++++++++++++++ .../portage-stable/dev-lang/swig/Manifest | 1 + .../dev-lang/swig/files/fix-for-PLT4.patch | 11 ++ .../dev-lang/swig/swig-1.3.36.ebuild | 83 ++++++++ .../portage-stable/dev-lang/tcl/Manifest | 1 + .../tcl/files/tcl-8.5_alpha6-multilib.patch | 24 +++ .../files/tcl-8.5_alpha6-tclm4-soname.patch | 11 ++ .../dev-lang/tcl/tcl-8.5.7.ebuild | 112 +++++++++++ 9 files changed, 425 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/ruby/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/ruby/ruby-1.8.7_p249.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/swig/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/swig/files/fix-for-PLT4.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/swig/swig-1.3.36.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/tcl/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-multilib.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-tclm4-soname.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-lang/tcl/tcl-8.5.7.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/ruby/Manifest b/sdk_container/src/third_party/portage-stable/dev-lang/ruby/Manifest new file mode 100644 index 0000000000..7f03517369 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/ruby/Manifest @@ -0,0 +1,2 @@ +DIST ruby-1.8.7-p249.tar.bz2 4153461 RMD160 96b238bd7194652ec194a505c2e5911441c5c5ee SHA1 2947f21f22e9345a3e94d84e6f88e7d0fc98a871 SHA256 8b89448fc79df6862660e9f77e884f06c76da28f078d8edd2f17567a615f3af5 +DIST ruby-patches-1.8.7_p249.tar.bz2 1499 RMD160 98670658db00a1c4ad563e68bf25263fd7f317fd SHA1 d371f7f25a75ac8626e2e87a570bb52a60579fb8 SHA256 b35ba05fb07c0264a9232e756cd80ff7f284fb8aa464368ce028d67fa11f31af diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/ruby/ruby-1.8.7_p249.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/ruby/ruby-1.8.7_p249.ebuild new file mode 100644 index 0000000000..433ed97a4d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/ruby/ruby-1.8.7_p249.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p249.ebuild,v 1.6 2010/01/13 19:35:57 a3li Exp $ + +EAPI=1 +inherit autotools eutils flag-o-matic multilib versionator + +MY_P="${PN}-$(replace_version_separator 3 '-')" +S=${WORKDIR}/${MY_P} + +SLOT=$(get_version_component_range 1-2) +MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2 + http://dev.a3li.li/gentoo/distfiles/${PN}-patches-${PV}.tar.bz2" + +LICENSE="|| ( Ruby GPL-2 )" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="+berkdb debug doc emacs examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs" + +RDEPEND=" + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + ssl? ( dev-libs/openssl ) + socks5? ( >=net-proxy/dante-1.1.13 ) + tk? ( dev-lang/tk ) + >=app-admin/eselect-ruby-20091225 + !=dev-lang/ruby-cvs-${SLOT}* + !=dev-scheme/plt-scheme-4'; then + epatch "${FILESDIR}"/fix-for-PLT4.patch + ./autogen.sh + fi +} + +src_compile() { + strip-flags + + local myconf + if use ruby ; then + local rubyver=$(ruby --version | cut -d '.' -f 1,2) + export RUBY="/usr/$(get_libdir)/ruby/${rubyver/ruby /}/" + fi + + econf \ + $(use_with chicken) \ + $(use_with clisp) \ + $(use_with guile) \ + $(use_with java java "${JAVA_HOME}") \ + $(use_with java javaincl "${JAVA_HOME}/include") \ + $(use_with lua) \ + $(use_with mono csharp) \ + $(use_with mzscheme) \ + $(use_with ocaml) \ + $(use_with octave) \ + $(use_with perl perl5 /usr/bin/perl) \ + $(use_with php php4) \ + $(use_with pike) \ + $(use_with python) \ + $(use_with R r) \ + $(use_with ruby ruby /usr/bin/ruby) \ + $(use_with tk x) \ + $(use_with tcl) \ + || die + emake || die +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ANNOUNCE CHANGES CHANGES.current FUTURE NEW README TODO + use doc && dohtml -r Doc/{Devel,Manual} +} diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/tcl/Manifest b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/Manifest new file mode 100644 index 0000000000..3d53b4674a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/Manifest @@ -0,0 +1 @@ +DIST tcl8.5.7-src.tar.gz 4421720 RMD160 1bb843548c05332eb3404b99b4800613f25a9dbf SHA1 a603d27bf0b854739c99f0d658bfc3f1c485f578 SHA256 67d28d51a8d04c37114030276503bc8859a4b291bc33133556ab2d11303e66f2 diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-multilib.patch b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-multilib.patch new file mode 100644 index 0000000000..ca7535fe0b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-multilib.patch @@ -0,0 +1,24 @@ +diff -Naur tcl8.5a6.orig/unix/configure tcl8.5a6/unix/configure +--- tcl8.5a6.orig/unix/configure 2007-04-27 02:33:51.000000000 +0900 ++++ tcl8.5a6/unix/configure 2007-05-16 10:27:25.000000000 +0900 +@@ -17623,7 +17623,7 @@ + + eval "TCL_LIB_FILE=${TCL_LIB_FILE}" + +-TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' ++TCL_LIBRARY='$(libdir)/tcl$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + +diff -Naur tcl8.5a6.orig/unix/configure.in tcl8.5a6/unix/configure.in +--- tcl8.5a6.orig/unix/configure.in 2007-04-27 02:33:51.000000000 +0900 ++++ tcl8.5a6/unix/configure.in 2007-05-16 10:27:25.000000000 +0900 +@@ -645,7 +645,7 @@ + + eval "TCL_LIB_FILE=${TCL_LIB_FILE}" + +-TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' ++TCL_LIBRARY='$(libdir)/tcl$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-tclm4-soname.patch b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-tclm4-soname.patch new file mode 100644 index 0000000000..f24cdc6088 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/files/tcl-8.5_alpha6-tclm4-soname.patch @@ -0,0 +1,11 @@ +--- tcl8.5a6.orig/unix/tcl.m4 2007-04-27 02:33:51.000000000 +0900 ++++ tcl8.5a6/unix/tcl.m4 2007-05-16 10:46:31.000000000 +0900 +@@ -1425,7 +1425,7 @@ + # get rid of the warnings. + #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" + +- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' ++ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="$LDFLAGS -Wl,--export-dynamic" diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/tcl/tcl-8.5.7.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/tcl-8.5.7.ebuild new file mode 100644 index 0000000000..9586b74b1a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-lang/tcl/tcl-8.5.7.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.7.ebuild,v 1.11 2009/10/06 17:33:00 armin76 Exp $ + +WANT_AUTOCONF=latest +WANT_AUTOMAKE=latest + +inherit autotools eutils flag-o-matic multilib toolchain-funcs + +MY_P="${PN}${PV/_beta/b}" +DESCRIPTION="Tool Command Language" +HOMEPAGE="http://www.tcl.tk/" +SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="debug threads" + +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if use threads ; then + ewarn "" + ewarn "PLEASE NOTE: You are compiling ${P} with" + ewarn "threading enabled." + ewarn "Threading is not supported by all applications" + ewarn "that compile against tcl. You use threading at" + ewarn "your own discretion." + ewarn "" + epause 5 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch + + # Bug 125971 + epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch + + cd "${S}"/unix + eautoreconf +} + +src_compile() { + # workaround stack check issues, bug #280934 + if use hppa; then + append-cflags "-DTCL_NO_STACK_CHECK=1" + fi + + tc-export CC + + cd "${S}"/unix + econf \ + $(use_enable threads) \ + $(use_enable debug symbols) || die + emake || die +} + +src_install() { + #short version number + local v1 + v1=${PV%.*} + + cd "${S}"/unix + S= emake DESTDIR="${D}" install || die + + # fix the tclConfig.sh to eliminate refs to the build directory + local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/} + sed -i \ + -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \ + -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \ + -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \ + -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \ + -e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \ + -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \ + -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \ + "${D}"/usr/${mylibdir}/tclConfig.sh || die + + # install private headers + insinto /usr/${mylibdir}/tcl${v1}/include/unix + doins "${S}"/unix/*.h || die + insinto /usr/${mylibdir}/tcl${v1}/include/generic + doins "${S}"/generic/*.h || die + rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h + rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h + rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h + + # install symlink for libraries + dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so + dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a + + dosym tclsh${v1} /usr/bin/tclsh + + cd "${S}" + dodoc ChangeLog* README changes +} + +pkg_postinst() { + ewarn + ewarn "If you're upgrading from