summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-01-09 19:39:57 +0100
committerDavid Seifert <soap@gentoo.org>2022-01-09 19:39:57 +0100
commit793a75e101ba3d372dcb34f61cf2c899af009133 (patch)
tree1838bae32bb02021073f3a31f9ea4ce238fc2eeb /media-libs/libmpeg3
parentsys-fabric/librdmacm: update EAPI 5 -> 6 (diff)
downloadgentoo-793a75e101ba3d372dcb34f61cf2c899af009133.tar.gz
gentoo-793a75e101ba3d372dcb34f61cf2c899af009133.tar.bz2
gentoo-793a75e101ba3d372dcb34f61cf2c899af009133.zip
media-libs/libmpeg3: update EAPI 5 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/libmpeg3')
-rw-r--r--media-libs/libmpeg3/Manifest2
-rw-r--r--media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch24
-rw-r--r--media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild60
-rw-r--r--media-libs/libmpeg3/libmpeg3-1.8-r2.ebuild66
4 files changed, 67 insertions, 85 deletions
diff --git a/media-libs/libmpeg3/Manifest b/media-libs/libmpeg3/Manifest
index 3b7aabe011d1..17b30fe596a3 100644
--- a/media-libs/libmpeg3/Manifest
+++ b/media-libs/libmpeg3/Manifest
@@ -1,2 +1,2 @@
-DIST libmpeg3-1.7-gentoo.tar.bz2 5625 BLAKE2B 8c0e18c690d70d6dc2e87428993eda57c5b67152514221b38860644c21ab4a98d6f4060f9399be5bcfddaa42de0ce6f55019a6d88ae3abfc2793b9d57a0d85e5 SHA512 9ef94c41ee943e321c9fc14a02659a839f08554aac4f5c5abcb9835e9940f0e5dc4c67c26f8124de960cba78493fa43f6c800748c0426e6dc141aa106e2aabc1
+DIST libmpeg3-1.8-patches-r0.tar.xz 5012 BLAKE2B b4a9a50f5765d233d48c50ef2156fa84a1e3804415847eabb33c9987597fba964983f89f973ba4f5458d5a0e77882b878b7b33a7c22adb1d3ad0824698126bad SHA512 233136e214403dc37bf5a6e66e017a051455f6745c57e204c1d0cd4ffcb8e0df858f945520e183886cf4df1930a2a566b08f69e9292642ec1eacffa0946c830b
DIST libmpeg3-1.8-src.tar.bz2 2452350 BLAKE2B f5d4a3f7291847baa35bf5103f7bc5d79122d488c1f89ae6006912666cd29d4651cc74721e5e451f543c2493f64bd3cae0fa72384d866454cae6f3e0a2e77985 SHA512 e381f07d46d47d391c6db420791a065e3572e17ca63966eb52712560867866683505693f73b25869059319eec66fd1c2f923dbef1fdca5ef9efbe598e217d60e
diff --git a/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch b/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch
deleted file mode 100644
index 632537b87191..000000000000
--- a/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Index: libmpeg3-1.8/audio/ac3.c
-===================================================================
---- libmpeg3-1.8.orig/audio/ac3.c
-+++ libmpeg3-1.8/audio/ac3.c
-@@ -6,6 +6,7 @@
- #include "mpeg3protos.h"
-
- #include <string.h>
-+#include <stdlib.h>
-
-
- mpeg3_ac3_t* mpeg3_new_ac3()
-Index: libmpeg3-1.8/audio/layer3.c
-===================================================================
---- libmpeg3-1.8.orig/audio/layer3.c
-+++ libmpeg3-1.8/audio/layer3.c
-@@ -5,6 +5,7 @@
-
- #include <stdio.h>
- #include <string.h>
-+#include <stdlib.h>
-
- struct gr_info_s
- {
diff --git a/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild b/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild
deleted file mode 100644
index 2b72b966641f..000000000000
--- a/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools epatch multilib-minimal
-
-DESCRIPTION="An mpeg library for linux"
-HOMEPAGE="http://heroinewarrior.com/libmpeg3.php"
-SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2
- mirror://gentoo/${PN}-1.7-gentoo.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
-IUSE="cpu_flags_x86_mmx"
-
-RDEPEND="sys-libs/zlib
- virtual/jpeg:0
- media-libs/a52dec"
-DEPEND="${RDEPEND}
- cpu_flags_x86_mmx? ( dev-lang/nasm )"
-
-src_prepare() {
- epatch "${WORKDIR}"/${PN}-1.7-mpeg3split.patch
- epatch "${WORKDIR}"/${PN}-1.7-textrel.patch
- epatch "${WORKDIR}"/${PN}-1.7-gnustack.patch
- epatch "${WORKDIR}"/${PN}-1.7-a52.patch
- epatch "${WORKDIR}"/${PN}-1.7-all_gcc4.patch
- epatch "${WORKDIR}"/${PN}-1.7-all_pthread.patch
-
- epatch "${FILESDIR}/${P}-impldecl.patch"
-
- cp -rf "${WORKDIR}"/1.7/* .
- eautoreconf
-}
-
-multilib_src_configure() {
- #disabling css since it's a fake one.
- #One can find in the sources this message :
- # Stubs for deCSS which can't be distributed in source form
-
- ECONF_SOURCE="${S}" econf \
- $(use_enable cpu_flags_x86_mmx mmx) \
- --disable-css
-}
-
-multilib_src_install_all() {
- dohtml -r docs
- # This is a workaround, it wants to rebuild
- # everything if the headers have changed
- # So we patch them after install...
- cd "${ED}/usr/include/libmpeg3"
- # This patch patches the .h files that get installed into /usr/include
- # to show the correct include syntax '<>' instead of '""' This patch
- # was also generated using info from SF's src.rpm
- epatch "${WORKDIR}"/gentoo-p2.patch
-
- find "${ED}" -name '*.la' -exec rm -f '{}' +
-}
diff --git a/media-libs/libmpeg3/libmpeg3-1.8-r2.ebuild b/media-libs/libmpeg3/libmpeg3-1.8-r2.ebuild
new file mode 100644
index 000000000000..c1a9ce4e0139
--- /dev/null
+++ b/media-libs/libmpeg3/libmpeg3-1.8-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="An mpeg library for linux"
+HOMEPAGE="http://heroinewarrior.com/libmpeg3.php"
+SRC_URI="
+ mirror://sourceforge/heroines/${P}-src.tar.bz2
+ https://dev.gentoo.org/~soap/distfiles/${P}-patches-r0.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
+IUSE="cpu_flags_x86_mmx"
+
+RDEPEND="
+ media-libs/a52dec
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}"
+BDEPEND="cpu_flags_x86_mmx? ( dev-lang/nasm )"
+
+PATCHES=(
+ "${WORKDIR}"/patches/${PN}-1.7-mpeg3split.patch
+ "${WORKDIR}"/patches/${PN}-1.7-textrel.patch
+ "${WORKDIR}"/patches/${PN}-1.7-gnustack.patch
+ "${WORKDIR}"/patches/${PN}-1.7-a52.patch
+ "${WORKDIR}"/patches/${PN}-1.7-all_gcc4.patch
+ "${WORKDIR}"/patches/${PN}-1.7-all_pthread.patch
+ "${WORKDIR}"/patches/${P}-impldecl.patch
+)
+
+src_prepare() {
+ default
+
+ cp -rf "${WORKDIR}"/patches/1.7/. . || die
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # disabling css since it's a fake one.
+ # One can find in the sources this message :
+ # Stubs for deCSS which can't be distributed in source form
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ --disable-css
+}
+
+multilib_src_install_all() {
+ HTML_DOCS=( docs/. )
+ einstalldocs
+
+ # This is a workaround, it wants to rebuild
+ # everything if the headers have changed
+ # So we patch them after install...
+ cd "${ED}"/usr/include/libmpeg3 || die
+ # This patch patches the .h files that get installed into /usr/include
+ # to show the correct include syntax '<>' instead of '""' This patch
+ # was also generated using info from SF's src.rpm
+ eapply "${WORKDIR}"/patches/gentoo-p2.patch
+
+ find "${ED}" -name '*.la' -delete || die
+}