diff options
author | 2011-05-20 10:54:01 +0000 | |
---|---|---|
committer | 2011-05-20 10:54:01 +0000 | |
commit | 9b5e8dba1a9b2568a6d22fdc76d57667ff94f56b (patch) | |
tree | 4fb6232512ddfe312d67a78c243e6938ad57b92f /sys-libs | |
parent | Initial import. (diff) | |
download | gentoo-2-9b5e8dba1a9b2568a6d22fdc76d57667ff94f56b.tar.gz gentoo-2-9b5e8dba1a9b2568a6d22fdc76d57667ff94f56b.tar.bz2 gentoo-2-9b5e8dba1a9b2568a6d22fdc76d57667ff94f56b.zip |
added new version + live ebuild
(Portage version: 2.2.01.18252-prefix/cvs/Interix x86)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/suacomp/ChangeLog | 11 | ||||
-rw-r--r-- | sys-libs/suacomp/suacomp-0.6.8.ebuild | 62 | ||||
-rw-r--r-- | sys-libs/suacomp/suacomp-9999.ebuild | 62 |
3 files changed, 133 insertions, 2 deletions
diff --git a/sys-libs/suacomp/ChangeLog b/sys-libs/suacomp/ChangeLog index 446209077138..86cf651b06de 100644 --- a/sys-libs/suacomp/ChangeLog +++ b/sys-libs/suacomp/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-libs/suacomp -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/ChangeLog,v 1.4 2010/11/04 15:12:43 mduft Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/ChangeLog,v 1.5 2011/05/20 10:54:01 mduft Exp $ + +*suacomp-9999 (20 May 2011) +*suacomp-0.6.8 (20 May 2011) + + 20 May 2011; Markus Duft <mduft@gentoo.org> +suacomp-0.6.8.ebuild, + +suacomp-9999.ebuild: + added new version + live ebuild *suacomp-0.6.6 (04 Nov 2010) diff --git a/sys-libs/suacomp/suacomp-0.6.8.ebuild b/sys-libs/suacomp/suacomp-0.6.8.ebuild new file mode 100644 index 000000000000..a91e6e119996 --- /dev/null +++ b/sys-libs/suacomp/suacomp-0.6.8.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/suacomp-0.6.8.ebuild,v 1.1 2011/05/20 10:54:01 mduft Exp $ + +EAPI=3 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="library wrapping the interix lib-c to make it less buggy." +HOMEPAGE="http://suacomp.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BEER-WARE" +SLOT="0" +KEYWORDS="-* ~x86-interix" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +get_opts() { + local shlibc= + local stlibc= + + for dir in /usr/lib /usr/lib/x86; do + [[ -f ${dir}/libc.a ]] && stlibc=${dir}/libc.a + + for name in libc.so.5.2 libc.so.3.5; do + [[ -f ${dir}/${name} ]] && { shlibc=${dir}/${name}; break; } + done + + [[ -f ${shlibc} && -f ${stlibc} ]] && break + done + + echo "SHARED_LIBC=${shlibc} STATIC_LIBC=${stlibc}" +} + +pkg_setup() { + if use debug; then + append-flags -D_DEBUG -D_DEBUG_TRACE + fi + + [[ ${CHOST} == *-interix3* ]] && append-flags -DINTERIX3 +} + +src_compile() { + emake all CC=$(tc-getCC) $(get_opts) CFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ + CFLAGS="${CFLAGS}" || die "emake install failed" +} + +src_test() { + local v= + + use debug && v="TEST_VERBOSE=1" + use debug && export SUACOMP_DEBUG_OUT=stderr + + emake check $(get_opts) ${v} || die "emake check failed" +} diff --git a/sys-libs/suacomp/suacomp-9999.ebuild b/sys-libs/suacomp/suacomp-9999.ebuild new file mode 100644 index 000000000000..0146c87bb138 --- /dev/null +++ b/sys-libs/suacomp/suacomp-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/suacomp-9999.ebuild,v 1.1 2011/05/20 10:54:01 mduft Exp $ + +EAPI=3 + +inherit toolchain-funcs flag-o-matic git + +DESCRIPTION="library wrapping the interix lib-c to make it less buggy." +HOMEPAGE="http://suacomp.sf.net" +EGIT_REPO_URI="http://git.code.sf.net/p/suacomp/git" + +LICENSE="BEER-WARE" +SLOT="0" +KEYWORDS="-*" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +get_opts() { + local shlibc= + local stlibc= + + for dir in /usr/lib /usr/lib/x86; do + [[ -f ${dir}/libc.a ]] && stlibc=${dir}/libc.a + + for name in libc.so.5.2 libc.so.3.5; do + [[ -f ${dir}/${name} ]] && { shlibc=${dir}/${name}; break; } + done + + [[ -f ${shlibc} && -f ${stlibc} ]] && break + done + + echo "SHARED_LIBC=${shlibc} STATIC_LIBC=${stlibc}" +} + +pkg_setup() { + if use debug; then + append-flags -D_DEBUG -D_DEBUG_TRACE + fi + + [[ ${CHOST} == *-interix3* ]] && append-flags -DINTERIX3 +} + +src_compile() { + emake all CC=$(tc-getCC) $(get_opts) CFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ + CFLAGS="${CFLAGS}" || die "emake install failed" +} + +src_test() { + local v= + + use debug && v="TEST_VERBOSE=1" + use debug && export SUACOMP_DEBUG_OUT=stderr + + emake check $(get_opts) ${v} || die "emake check failed" +} |