diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-02-13 03:32:41 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-02-13 03:32:41 +0000 |
commit | cf6341cf38b2f371794a0de10e363879a998bd3b (patch) | |
tree | 20c76ed4cc82353ed9f8585ddc2f1c1e3761ebd5 /media-libs/ming | |
parent | Stable on sparc. (diff) | |
download | historical-cf6341cf38b2f371794a0de10e363879a998bd3b.tar.gz historical-cf6341cf38b2f371794a0de10e363879a998bd3b.tar.bz2 historical-cf6341cf38b2f371794a0de10e363879a998bd3b.zip |
Add python support.
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'media-libs/ming')
-rw-r--r-- | media-libs/ming/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/ming/Manifest | 19 | ||||
-rw-r--r-- | media-libs/ming/files/digest-ming-0.2a-r1 | 1 | ||||
-rw-r--r-- | media-libs/ming/ming-0.2a-r1.ebuild | 70 | ||||
-rw-r--r-- | media-libs/ming/ming-0.2a.ebuild | 4 |
5 files changed, 96 insertions, 7 deletions
diff --git a/media-libs/ming/ChangeLog b/media-libs/ming/ChangeLog index c639c658f657..58e44e9c2dcc 100644 --- a/media-libs/ming/ChangeLog +++ b/media-libs/ming/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/ming -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.16 2004/10/07 03:00:54 eradicator Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ChangeLog,v 1.17 2005/02/13 03:32:41 robbat2 Exp $ + +*ming-0.2a-r1 (12 Feb 2005) + + 12 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> +ming-0.2a-r1.ebuild: + Add python support. 06 Oct 2004; Jeremy Huddleston <eradicator@gentoo.org> ming-0.2a.ebuild: get_libdir fixes. diff --git a/media-libs/ming/Manifest b/media-libs/ming/Manifest index bf8a902ab583..59d0941a8f06 100644 --- a/media-libs/ming/Manifest +++ b/media-libs/ming/Manifest @@ -1,5 +1,18 @@ -MD5 57e319ed7b07da263ecf342e9257734a ChangeLog 1874 -MD5 0017e475c81dc5f2f53420092c0a6b0d ming-0.2a.ebuild 1180 -MD5 6a50642c5c8129217df944bf99398c6e files/digest-ming-0.2a 58 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 9afc1d607998764113e5f948b758ea34 ming-0.2a.ebuild 1181 +MD5 437b6955abb5bcf9180d7766d83a4b92 ming-0.2a-r1.ebuild 2033 +MD5 1b018d03fbc156d6f2adf318a10bae6d ChangeLog 1998 MD5 0d2b63f032d402518c9384d5db4404b1 files/ming-0.2a-fpic.patch 1814 MD5 e086353fa9ba2b2e6b9ca9c87b04a367 files/ming-0.2a-gentoo.diff 369 +MD5 6a50642c5c8129217df944bf99398c6e files/digest-ming-0.2a 58 +MD5 6a50642c5c8129217df944bf99398c6e files/digest-ming-0.2a-r1 58 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) +Comment: Robbat2 @ Orbis-Terrarum Networks + +iD8DBQFCDsplPpIsIjIzwiwRAjjnAKC5TFzLuQ765AdAfvmfyqIOjv3+4ACg4Neg +glMc8cnxHcu5y+0OoV1wUco= +=6WZ/ +-----END PGP SIGNATURE----- diff --git a/media-libs/ming/files/digest-ming-0.2a-r1 b/media-libs/ming/files/digest-ming-0.2a-r1 new file mode 100644 index 000000000000..146ed635587e --- /dev/null +++ b/media-libs/ming/files/digest-ming-0.2a-r1 @@ -0,0 +1 @@ +MD5 72b25da0af28d9cb025c2aaf3fd0185c ming-0.2a.tgz 316447 diff --git a/media-libs/ming/ming-0.2a-r1.ebuild b/media-libs/ming/ming-0.2a-r1.ebuild new file mode 100644 index 000000000000..444643765b42 --- /dev/null +++ b/media-libs/ming/ming-0.2a-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.2a-r1.ebuild,v 1.1 2005/02/13 03:32:41 robbat2 Exp $ + +inherit eutils toolchain-funcs python + +DESCRIPTION="A OpenSource library from flash movie generation" +HOMEPAGE="http://www.opaque.net/ming/" +SRC_URI="http://www.opaque.net/ming/${P}.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="python" + +DEPEND="virtual/libc + python? ( virtual/python )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-fpic.patch + epatch ${FILESDIR}/${P}-gentoo.diff + sed -e 's,gcc -g -Wall,$(CC) $(CFLAGS),g' -i ${S}/py_ext/Makefile +} + +src_compile() { + emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" all static || die + cd util + emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" bindump hexdump listswf listfdb listmp3 listjpeg makefdb swftophp || die + if use python; then + cd ${S}/py_ext + python_version + my_python="python${PYVER}" + PYLIBDIR="/usr/lib/python${PYVER}" + PYINCDIR="/usr/include/python${PYVER}" + emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" \ + PYINCDIR="${PYINCDIR}" PYLIBDIR="${PYLIBDIR}" \ + mingcmodule.so + fi +} + +src_install() { + dolib.so libming.so || die "lib.so" + dolib.a libming.a || die "lib.a" + insinto /usr/include + doins ming.h || die "include" + exeinto /usr/$(get_libdir)/ming + doexe util/{bindump,hexdump,listswf,listfdb,listmp3,listjpeg,makefdb,swftophp} || die "utils" + dodoc CHANGES CREDITS README TODO + newdoc util/README README.util + newdoc util/TODO TODO.util + if use python; then + cd ${S}/py_ext + python_version + PYLIBDIR="/usr/lib/python${PYVER}" + insinto ${PYLIBDIR}/site-packages + doins mingcmodule.so ming.py + newdoc README README.python + newdoc TODO TODO.python + newdoc INSTALL INSTALL.python + dodoc test.py shape.py + fi +} +pkg_postinst() { + if use python; then + python_version + python_mod_compile /usr/lib/python${PYVER}/site-packages/ming.py + fi +} diff --git a/media-libs/ming/ming-0.2a.ebuild b/media-libs/ming/ming-0.2a.ebuild index e7e35ac18e03..09f64f1ee338 100644 --- a/media-libs/ming/ming-0.2a.ebuild +++ b/media-libs/ming/ming-0.2a.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.2a.ebuild,v 1.21 2004/10/26 14:05:29 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.2a.ebuild,v 1.22 2005/02/13 03:32:41 robbat2 Exp $ inherit eutils toolchain-funcs |