Imported from prefix overlay
authorJustin Lecher <jlec@gentoo.org>
Fri, 2 Apr 2010 09:30:54 +0000 (09:30 +0000)
committerJustin Lecher <jlec@gentoo.org>
Fri, 2 Apr 2010 09:30:54 +0000 (09:30 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

dev-tcltk/itcl/ChangeLog
dev-tcltk/itcl/itcl-3.3.1_pre20090417-r1.ebuild [new file with mode: 0644]
dev-tcltk/snack/ChangeLog
dev-tcltk/snack/files/snack-2.2.10-darwin.patch [new file with mode: 0644]
dev-tcltk/snack/snack-2.2.10-r4.ebuild [new file with mode: 0644]

index 5fb2635bf9c410a77364020a328de47e59d09f4d..1e9982dc132941dd9f6e03522ab2d75afe75be54 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-tcltk/itcl
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/itcl/ChangeLog,v 1.42 2009/09/22 11:47:48 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/itcl/ChangeLog,v 1.43 2010/04/02 09:30:54 jlec Exp $
+
+*itcl-3.3.1_pre20090417-r1 (02 Apr 2010)
+
+  02 Apr 2010; Justin Lecher <jlec@gentoo.org>
+  +itcl-3.3.1_pre20090417-r1.ebuild:
+  Imported from prefix overlay
 
   22 Sep 2009; Markus Meier <maekke@gentoo.org>
   itcl-3.3.1_pre20090417.ebuild:
diff --git a/dev-tcltk/itcl/itcl-3.3.1_pre20090417-r1.ebuild b/dev-tcltk/itcl/itcl-3.3.1_pre20090417-r1.ebuild
new file mode 100644 (file)
index 0000000..4028f5b
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/itcl/itcl-3.3.1_pre20090417-r1.ebuild,v 1.1 2010/04/02 09:30:54 jlec Exp $
+
+inherit eutils
+
+MY_PN="incrTcl"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Object Oriented Enhancements for Tcl/Tk"
+HOMEPAGE="http://incrtcl.sourceforge.net/"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
+
+IUSE=""
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+
+DEPEND="dev-lang/tcl"
+
+S="${WORKDIR}/${MY_PN}/${PN}"
+
+src_compile() {
+       econf || die "econf failed"
+
+       # adjust install_name on darwin
+       if [[ ${CHOST} == *-darwin* ]]; then
+               sed -i \
+                       -e 's:^\(SHLIB_LD\W.*\)$:\1 -install_name ${pkglibdir}/$@:' \
+                       "${S}"/Makefile || die 'sed failed'
+       fi
+
+       emake CFLAGS_DEFAULT="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+       dodoc ../{CHANGES,ChangeLog,INCOMPATIBLE,README,TODO}
+}
index 31bc966f6e06c9db95687030cb8f4e8e24b87e45..a8a137c8dd3af691e06f56fc69e0366cf04b84ff 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-tcltk/snack
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.41 2010/03/31 21:18:12 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.42 2010/04/02 09:27:08 jlec Exp $
+
+*snack-2.2.10-r4 (02 Apr 2010)
+
+  02 Apr 2010; Justin Lecher <jlec@gentoo.org> +snack-2.2.10-r4.ebuild,
+  +files/snack-2.2.10-darwin.patch:
+  Imported from prefix overlay
 
 *snack-2.2.10-r3 (31 Mar 2010)
 
diff --git a/dev-tcltk/snack/files/snack-2.2.10-darwin.patch b/dev-tcltk/snack/files/snack-2.2.10-darwin.patch
new file mode 100644 (file)
index 0000000..8c6dc52
--- /dev/null
@@ -0,0 +1,28 @@
+* grobian@gentoo.org: need all symbols to be satisfied, need
+  install_name for actual usage
+
+--- unix/Makefile.in
++++ unix/Makefile.in
+@@ -35,7 +35,7 @@
+ 
+ LIBSO     = -lc @ALIB@ @TCL_LIB_SPEC@
+ 
+-LIBSN     = -lc @TK_LIBS@ @ALIB@ @TCL_LIB_SPEC@ @TK_LIB_SPEC@
++LIBSN     = -lc -lX11 -ltk @TK_LIBS@ @ALIB@ @TCL_LIB_SPEC@ @TK_LIB_SPEC@
+ 
+ SHLIB_LD     = @SHLIB_LD@
+ SHLIB_SUFFIX = @SHLIB_SUFFIX@
+@@ -158,11 +158,11 @@
+       $(CC) -c $(CFLAGS) $(GENERIC_DIR)/snackStubLib.c
+ 
+ libsound${SHLIB_SUFFIX}: ${OBJSO}
+-      ${SHLIB_LD} ${OBJSO} ${LIBSO} -o libsound${SHLIB_SUFFIX} 
++      ${SHLIB_LD} ${OBJSO} ${LIBSO} -install_name $(SNACK_INSTALL_PATH)/snack${VERSION}/libsound${SHLIB_SUFFIX} -o libsound${SHLIB_SUFFIX} 
+       sed s/.dll/${SHLIB_SUFFIX}/ < $(UNIX_DIR)/pkgIndex.tcl.dll > pkgIndex.tcl
+ 
+ libsnack${SHLIB_SUFFIX}: ${OBJSN}
+-      ${SHLIB_LD} ${OBJSN} ${LIBSN} -o libsnack${SHLIB_SUFFIX} 
++      ${SHLIB_LD} ${OBJSN} ${LIBSN} -install_name $(SNACK_INSTALL_PATH)/snack${VERSION}/libsnack${SHLIB_SUFFIX} -o libsnack${SHLIB_SUFFIX} 
+       sed s/.dll/${SHLIB_SUFFIX}/ < $(UNIX_DIR)/pkgIndex.tcl.dll > pkgIndex.tcl
+ 
+ stublib: ${OBJSNST}
diff --git a/dev-tcltk/snack/snack-2.2.10-r4.ebuild b/dev-tcltk/snack/snack-2.2.10-r4.ebuild
new file mode 100644 (file)
index 0000000..56798f4
--- /dev/null
@@ -0,0 +1,88 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/snack-2.2.10-r4.ebuild,v 1.1 2010/04/02 09:27:08 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="python? 2"
+
+inherit eutils multilib python
+
+DESCRIPTION="The Snack Sound Toolkit (Tcl)"
+HOMEPAGE="http://www.speech.kth.se/snack/"
+SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+SLOT="0"
+IUSE="alsa examples python threads vorbis"
+
+RESTRICT="test" # Bug 78354
+
+DEPEND="
+       >dev-lang/tcl-8.4.3
+       >dev-lang/tk-8.4.3
+       alsa? ( media-libs/alsa-lib )
+       vorbis? ( media-libs/libvorbis )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}${PV}/unix"
+
+src_prepare() {
+       # bug 226137 - snack depends on alsa private symbol _snd_pcm_mmap_hw_ptr
+       epatch "${FILESDIR}"/alsa-undef-sym.patch
+       # bug 270839 - error from /usr/include/bits/mathcalls.h:310
+       sed -i -e 's|^\(#define roundf(.*\)|//\1|' ../generic/jkFormatMP3.c
+
+       # adds -install_name (soname on Darwin)
+       [[ ${CHOST} == *-darwin* ]] && epatch "${FILESDIR}"/${P}-darwin.patch
+}
+
+src_compile() {
+       local myconf="--libdir="${EPREFIX}"/usr/$(get_libdir) --includedir="${EPREFIX}"/usr/include"
+
+       use alsa && myconf="${myconf} --enable-alsa"
+       use threads && myconf="${myconf} --enable-threads"
+
+       if use vorbis ; then
+               myconf="${myconf} --with-ogg-include="${EPREFIX}"/usr/include"
+               myconf="${myconf} --with-ogg-lib="${EPREFIX}"/usr/$(get_libdir)"
+       fi
+
+       econf ${myconf} || die "configure failed"
+       emake || die "make failed"
+
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+
+       if use python ; then
+               cd "${S}"/../python
+               python setup.py install --root="${ED}" || die
+       fi
+
+       cd "${S}"/..
+
+       dodoc README changes
+       dohtml doc/*
+
+       if use examples ; then
+               sed -i -e 's/wish[0-9.]+/wish/g' demos/tcl/* || die
+               docinto examples/tcl
+               dodoc demos/tcl/*
+
+               if use python ; then
+                       docinto examples/python
+                       dodoc demos/python/*
+               fi
+       fi
+}
+
+pkg_postinst() {
+       python_mod_optimize tkSnack.py
+}
+
+pkg_postrm() {
+       python_mod_cleanup tkSnack.py
+}