diff options
author | Dominik Kapusta <ayoy@gentoo.org> | 2009-11-19 18:40:57 +0000 |
---|---|---|
committer | Dominik Kapusta <ayoy@gentoo.org> | 2009-11-19 18:40:57 +0000 |
commit | c87681f198fc7104cb733bc04a33c0bb35440da2 (patch) | |
tree | e8a48051e49e140fce8d043ab3295cfd03e486bd | |
parent | Moving scratchbox2 ebuild to a separate package directory (diff) | |
download | historical-c87681f198fc7104cb733bc04a33c0bb35440da2.tar.gz historical-c87681f198fc7104cb733bc04a33c0bb35440da2.tar.bz2 historical-c87681f198fc7104cb733bc04a33c0bb35440da2.zip |
Initial commit for scratchbox2 - moved from dev-embedded/scratchbox
Package-Manager: portage-2.2_rc49/cvs/Linux x86_64
-rw-r--r-- | dev-embedded/scratchbox2/ChangeLog | 11 | ||||
-rw-r--r-- | dev-embedded/scratchbox2/files/scratchbox2-2.0-gentoo.patch | 57 | ||||
-rw-r--r-- | dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch | 39 | ||||
-rw-r--r-- | dev-embedded/scratchbox2/metadata.xml | 12 | ||||
-rw-r--r-- | dev-embedded/scratchbox2/scratchbox2-2.0.ebuild | 57 |
5 files changed, 176 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox2/ChangeLog b/dev-embedded/scratchbox2/ChangeLog new file mode 100644 index 000000000000..9ed80583541c --- /dev/null +++ b/dev-embedded/scratchbox2/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-embedded/scratchbox2 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox2/ChangeLog,v 1.1 2009/11/19 18:40:56 ayoy Exp $ + +*scratchbox2-2.0 (19 Nov 2009) + + 19 Nov 2009; Dominik Kapusta <ayoy@gentoo.org> +scratchbox2-2.0.ebuild, + +files/scratchbox2-2.0-gentoo.patch, + +files/scratchbox2-2.0-glibc-2.10.patch, +metadata.xml: + Initial commit for scratchbox2 - moved from dev-embedded/scratchbox + diff --git a/dev-embedded/scratchbox2/files/scratchbox2-2.0-gentoo.patch b/dev-embedded/scratchbox2/files/scratchbox2-2.0-gentoo.patch new file mode 100644 index 000000000000..e762c7dd5778 --- /dev/null +++ b/dev-embedded/scratchbox2/files/scratchbox2-2.0-gentoo.patch @@ -0,0 +1,57 @@ +diff --git a/Makefile b/Makefile +index 23a13b3..c5b26cc 100644 +--- a/Makefile ++++ b/Makefile +@@ -59,7 +59,6 @@ subdirs = luaif preload utils + + -include config.mak + +-CFLAGS += -O2 -g -Wall -W + CFLAGS += -I$(OBJDIR)/include -I$(SRCDIR)/include + CFLAGS += -I$(SRCDIR)/luaif/lua-5.1.4/src + CFLAGS += -D_GNU_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 +@@ -145,6 +144,9 @@ install-noarch: regular + else install -d -m 755 $(prefix)/share/man/man1 ; \ + fi + $(Q)echo "$(PACKAGE_VERSION)" > $(prefix)/share/scratchbox2/version ++ $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-show $(prefix)/bin/sb2-show ++ $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-monitor $(prefix)/bin/sb2-monitor ++ $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-interp-wrapper $(prefix)/bin/sb2-interp-wrapper + $(Q)install -c -m 755 $(SRCDIR)/utils/sb2 $(prefix)/bin/sb2 + $(Q)install -c -m 755 $(SRCDIR)/utils/sb2-init $(prefix)/bin/sb2-init + $(Q)install -c -m 755 $(SRCDIR)/utils/sb2-config $(prefix)/bin/sb2-config +@@ -210,10 +212,10 @@ install-noarch: regular + ifeq ($(MACH),x86_64) + install: install-multilib + else +-install: do-install ++install: install-singlelib + endif + +-do-install: install-noarch ++install-singlelib: install-noarch + $(P)INSTALL + @if [ -d $(prefix)/lib ] ; \ + then echo "$(prefix)/lib present" ; \ +@@ -221,9 +223,6 @@ do-install: install-noarch + fi + $(Q)install -d -m 755 $(prefix)/lib/libsb2 + $(Q)install -c -m 755 $(OBJDIR)/preload/libsb2.$(SHLIBEXT) $(prefix)/lib/libsb2/libsb2.so.$(PACKAGE_VERSION) +- $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-show $(prefix)/bin/sb2-show +- $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-monitor $(prefix)/bin/sb2-monitor +- $(Q)install -c -m 755 $(OBJDIR)/utils/sb2-interp-wrapper $(prefix)/bin/sb2-interp-wrapper + ifeq ($(OS),Linux) + $(Q)/sbin/ldconfig -n $(prefix)/lib/libsb2 + endif +@@ -232,9 +231,9 @@ multilib_prefix=$(prefix) + + install-multilib: multilib + @$(MAKE) -C obj-32 --include-dir=.. -f ../Makefile SRCDIR=.. do-install-multilib bitness=32 +- @$(MAKE) -C obj-64 --include-dir=.. -f ../Makefile SRCDIR=.. do-install ++ @$(MAKE) -C obj-64 --include-dir=.. -f ../Makefile SRCDIR=.. do-install-multilib bitness=64 + +-do-install-multilib: ++do-install-multilib: install-noarch + $(P)INSTALL + @if [ -d $(multilib_prefix)/lib$(bitness) ] ; \ + then echo "$(prefix)/lib$(bitness) present" ; \ diff --git a/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch b/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch new file mode 100644 index 000000000000..c5ec6aea4341 --- /dev/null +++ b/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch @@ -0,0 +1,39 @@ +diff --git a/preload/interface.master b/preload/interface.master +index 55a9481..4ba22b2 100644 +--- a/preload/interface.master ++++ b/preload/interface.master +@@ -406,20 +406,34 @@ WRAP: int rmdir(const char *pathname) : \ + + #ifdef HAVE_SCANDIR + #ifdef HAVE_LINUX_SCANDIR ++#if _POSIX_C_SOURCE == 200809L ++WRAP: int scandir(const char *dir, struct dirent ***namelist, \ ++ SCANDIR_TYPE_ARG3, \ ++ int(*compar)(const struct dirent **, const struct dirent **)) : \ ++ map(dir) hardcode_param(3,filter) ++#else + WRAP: int scandir(const char *dir, struct dirent ***namelist, \ + SCANDIR_TYPE_ARG3, int(*compar)(const void *, const void *)) : \ + map(dir) hardcode_param(3,filter) + #endif ++#endif + #ifdef HAVE_OSX_SCANDIR + WRAP: int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const void *, const void *)): map(dirname) + #endif + #endif + #ifdef HAVE_SCANDIR64 ++#if _POSIX_C_SOURCE == 200809L ++WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \ ++ int(*filter)(const struct dirent64 *), \ ++ int(*compar)(const struct dirent64 **, const struct dirent64 **)) : \ ++ map(dir) ++#else + WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \ + int(*filter)(const struct dirent64 *), \ + int(*compar)(const void *, const void *)) : \ + map(dir) + #endif ++#endif + #ifdef HAVE_SETXATTR + #ifdef HAVE_LINUX_XATTRS + WRAP: int setxattr(const char *path, const char *name, const void *value, \ diff --git a/dev-embedded/scratchbox2/metadata.xml b/dev-embedded/scratchbox2/metadata.xml new file mode 100644 index 000000000000..935dcc7fe3a9 --- /dev/null +++ b/dev-embedded/scratchbox2/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>dev-embedded</herd> + <maintainer> + <email>ayoy@gentoo.org</email> + <name>Dominik Kapusta</name> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> + diff --git a/dev-embedded/scratchbox2/scratchbox2-2.0.ebuild b/dev-embedded/scratchbox2/scratchbox2-2.0.ebuild new file mode 100644 index 000000000000..89b9b6f4722e --- /dev/null +++ b/dev-embedded/scratchbox2/scratchbox2-2.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox2/scratchbox2-2.0.ebuild,v 1.1 2009/11/19 18:40:56 ayoy Exp $ + +EAPI="2" + +inherit autotools eutils multilib toolchain-funcs + +MY_PN="${PN/cratch}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier." +HOMEPAGE="http://www.freedesktop.org/wiki/Software/sbox2" +SRC_URI="http://cgit.freedesktop.org/${MY_PN}/snapshot/${MY_P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${P}-glibc-2.10.patch" + epatch "${FILESDIR}/${P}-gentoo.patch" + + sed -e "s/^\(CC = \).*/\1$(tc-getCC)/" \ + -e "s/^\(CXX = \).*/\1$(tc-getCXX)/" \ + -e "s/^\(LD = \).*/\1$(tc-getLD)/" \ + -i Makefile || die "sed Makefile failed" + + eautoreconf +} + +src_compile() { + emake prefix="${D}/usr" || die "emake failed" +} + +src_install() { + emake INSTALL_ROOT="${D}" install || die "emake install failed" + + # List all the multilib libdirs + local libdirs= + for libdir in $(get_all_libdirs); do + libdirs="${libdirs}:/usr/${libdir}/libsb2" + done + + cat <<-EOF > "${T}/55scratchbox2" + LDPATH=${libdirs:1} + EOF + doenvd "${T}/55scratchbox2" || die "doenvd failed" + + dodoc AUTHORS README || die "dodoc failed" +} |