diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /media-libs/ming | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'media-libs/ming')
-rw-r--r-- | media-libs/ming/Manifest | 2 | ||||
-rw-r--r-- | media-libs/ming/ming-0.20181112.ebuild | 97 |
2 files changed, 99 insertions, 0 deletions
diff --git a/media-libs/ming/Manifest b/media-libs/ming/Manifest index 64c235600574..97e75797269d 100644 --- a/media-libs/ming/Manifest +++ b/media-libs/ming/Manifest @@ -1,5 +1,7 @@ AUX ming-0.4.8-CVE-2017-8782.patch 772 BLAKE2B 4425c357155b1a57b6498ffcc31119408aae3ca0de8e31160a9d449599ce94139438e55638808bb667042f0c0e3dcf3f6b5de9959314f17bed3e3f11e090f871 SHA512 69a445d41856e4a567c253d5a0a1f63128ad8f71d8c418da855d62e2f1ff13e2a19a6887a22cfdaa8682811695b79b3bc736b569756f88e8472d294d89561005 AUX ming-0.4.8-freetype_pkgconfig.patch 2146 BLAKE2B df8c56a04cfe5d0a264402ce5636853ea53c4376999077405355ad112503e82d1b346d7219eafad3689e93a2ac66f89f9ca5f9ad03c564c76571a1919c00e9d2 SHA512 f40ccdc5b97b847ff4bffbdc6a691db8627bbf85f97089e55214f19b34f098ddf0b7eb1a65d1fdc220cb9fb90f89f7fdfa78e44b5d10de872706451be89647ed +DIST ming-0.20181112.tar.gz 14889061 BLAKE2B a276f7aaf386f0233b9e92a95daf22b7fd192654275e99f70106b7abf2ec3963ae8d70a82addd2690e6c7038a0a52e41a27fbd5c9b38cc96d1ab617a3bfc522d SHA512 a4d3ed04c96ffc6d040ace3451f2d99a3fdda0726b45cee30913ca2dc8d9f24ff156a643eeb888d05eb199dd9f2caf4ce4f84fe40e1b95bf2f6c9e038155fdc3 DIST ming-0_4_8.tar.gz 14908459 BLAKE2B df89beab98a7fbdcbefccad3a2fb013453405a7dba757131a61f06d9e40b7e1fe7beeadab42c113b12cff24b91cb1e76e9fabee0e1b4af58e2127eba13cc27bc SHA512 e395acde9119ad32f4cedd500bcceee70bdd563222a41dda899cc318d5e34eb580abc38ac39c6dec7821913a0a70d2f953fc81f52255b623e34f7c3aaafbc9c0 +EBUILD ming-0.20181112.ebuild 2244 BLAKE2B c704a902bdd09c15713465357bd220a61dc0f94df895c305c7c7be321a71721dd22026182cc547bbff32dd22dcd24c8811f8df2a7e96c7607b61be060b983426 SHA512 b49cc6df6b6bcba3095215386241ee0818ab194e16fa7405a67a3065aca7a7c6053e94d2a6c56e3b3110dbb341e4eb33df64f3eb8c835a5e13d6c608210a8bda EBUILD ming-0.4.8-r1.ebuild 2257 BLAKE2B c6134cd272270764346d8fe80ae1897ad9353a131ade67d820c4fa4f1a3dd525b4a12851c79a357daaa83c52a84b8fa82eace830836b9d10c061880708cdb90f SHA512 2c7a0af6e4792d9ffce756dac6416432543912fd86bb1c7552b3d67fedd7968a19c971a6db7ea24707d73e2970af43469678d76c0097c83e9c53c00ec1eff1aa MISC metadata.xml 388 BLAKE2B 7083db03bf7efad4015f4aa3838925123a71bae6d57ed318232622e96c8590ef1f770520da535c9efc94f33b416430dccecc9a81fa81df936d4e15933a1dd041 SHA512 0efbb0ad1eadfd764bdf6e182cf8865994ca8e96ccc6e14845829638730e1ce6ff7ac2777e9ad3d396e7e29d77e034b818c95259eb8aab53a23b3c0815f787d0 diff --git a/media-libs/ming/ming-0.20181112.ebuild b/media-libs/ming/ming-0.20181112.ebuild new file mode 100644 index 000000000000..7babd84b0d7c --- /dev/null +++ b/media-libs/ming/ming-0.20181112.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PHP_EXT_NAME=ming +PHP_EXT_OPTIONAL_USE=php +AUTOTOOLS_AUTORECONF=yes +GENTOO_DEPEND_ON_PERL=no + +inherit autotools distutils-r1 flag-o-matic multilib perl-module vcs-snapshot + +EGIT_COMMIT="50098023446a5412efcfbd40552821a8cba983a6" + +DESCRIPTION="An Open Source library for Flash movie generation" +HOMEPAGE="http://ming.sourceforge.net/" +SRC_URI="https://github.com/libming/libming/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="+perl php +python static-libs" + +RDEPEND="perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} ) + media-libs/freetype:= + media-libs/libpng:0= + media-libs/giflib:= + sys-libs/zlib:= + !media-libs/libswf" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig + virtual/yacc" +PDEPEND="php? ( dev-php/ming-php )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Tests only work when the package is tested on a system +# which does not presently have any version of ming installed. +RESTRICT="test" + +src_prepare() { + default + + # Let's get rid of the TEXTRELS, link dynamic. Use gif. + sed -i \ + -e 's/libming.a/libming.so/' \ + -e 's/lungif/lgif/' \ + perl_ext/Makefile.PL || die "sed #1 failed" + + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die "sed #2 failed" + + eautoreconf +} + +src_configure() { + # build is sensitive to -O3 (bug #297437) + replace-flags -O3 -O2 + + # build python via distutils calls, disable here + # php is done in dev-php/ming-php + local myconf=( + --disable-python + --disable-php + $(use_enable static-libs static) + $(use_enable perl) + ) + econf "${myconf[@]}" +} + +run_distutils() { + if use python; then + pushd py_ext > /dev/null || die + distutils-r1_"${@}" + popd > /dev/null || die + fi +} + +src_compile() { + # some parallel make issues on flex/bison + emake -C src/actioncompiler -j1 + emake + + run_distutils ${FUNCNAME} +} + +src_install() { + run_distutils ${FUNCNAME} + + emake DESTDIR="${D}" INSTALLDIRS="vendor" install + einstalldocs + + perl_delete_localpod + find "${ED}"usr/lib* -name '*.la' -delete +} |