summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Duft <mduft@gentoo.org>2011-05-25 14:08:54 +0000
committerMarkus Duft <mduft@gentoo.org>2011-05-25 14:08:54 +0000
commit4c5f377d71daf93a800cac234443a3a681ec3327 (patch)
treef12125e64324b4382f8a4f27c488e55e90eb82ae /sys-libs
parentVersion bump (diff)
downloadgentoo-2-4c5f377d71daf93a800cac234443a3a681ec3327.tar.gz
gentoo-2-4c5f377d71daf93a800cac234443a3a681ec3327.tar.bz2
gentoo-2-4c5f377d71daf93a800cac234443a3a681ec3327.zip
add new version
(Portage version: 2.2.01.18252-prefix/cvs/Interix x86)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/suacomp/ChangeLog8
-rw-r--r--sys-libs/suacomp/suacomp-0.6.11.ebuild60
-rw-r--r--sys-libs/suacomp/suacomp-9999.ebuild5
3 files changed, 68 insertions, 5 deletions
diff --git a/sys-libs/suacomp/ChangeLog b/sys-libs/suacomp/ChangeLog
index 2037858b9e2f..94540f41ff80 100644
--- a/sys-libs/suacomp/ChangeLog
+++ b/sys-libs/suacomp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/suacomp
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/ChangeLog,v 1.7 2011/05/24 07:10:14 mduft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/ChangeLog,v 1.8 2011/05/25 14:08:54 mduft Exp $
+
+*suacomp-0.6.11 (25 May 2011)
+
+ 25 May 2011; Markus Duft <mduft@gentoo.org> +suacomp-0.6.11.ebuild,
+ suacomp-9999.ebuild:
+ add new version
*suacomp-0.6.10 (24 May 2011)
diff --git a/sys-libs/suacomp/suacomp-0.6.11.ebuild b/sys-libs/suacomp/suacomp-0.6.11.ebuild
new file mode 100644
index 000000000000..6f0358fedddb
--- /dev/null
+++ b/sys-libs/suacomp/suacomp-0.6.11.ebuild
@@ -0,0 +1,60 @@
+# 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.11.ebuild,v 1.1 2011/05/25 14:08:54 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
+}
+
+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
index e64dbad75a9e..a0e1e64cfda2 100644
--- a/sys-libs/suacomp/suacomp-9999.ebuild
+++ b/sys-libs/suacomp/suacomp-9999.ebuild
@@ -1,6 +1,6 @@
# 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.2 2011/05/23 14:54:47 mduft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/suacomp-9999.ebuild,v 1.3 2011/05/25 14:08:54 mduft Exp $
EAPI=3
@@ -39,9 +39,6 @@ pkg_setup() {
if use debug; then
append-flags -D_DEBUG -D_DEBUG_TRACE
fi
-
- [[ ${CHOST} == *-interix3* ]] && append-flags -DINTERIX3
- [[ ${CHOST} == *-interix5* ]] && append-flags -DINTERIX5
}
src_compile() {