[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-06-07 Thread Daniel Pielmeier
commit: 8953babc3a4641595c6c961ab5890a7d34c37cdb
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Fri Jun  7 16:23:22 2024 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Fri Jun  7 16:23:22 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8953babc

media-video/projectx: drop0.91.0.10-r4

Closes: https://bugs.gentoo.org/933670
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r4.ebuild | 126 --
 1 file changed, 126 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r4.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
deleted file mode 100644
index 57ef227ba394..
--- a/media-video/projectx/projectx-0.91.0.10-r4.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-JAVA_PKG_IUSE="doc source"
-
-inherit desktop edos2unix java-pkg-2 java-ant-2 toolchain-funcs xdg
-
-XDG_P="xdg-20100731"
-
-DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
-HOMEPAGE="https://project-x.sourceforge.net/;
-SRC_URI="https://dev.gentoo.org/~billie/distfiles/${PF}.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
-
-S="${WORKDIR}/Project-X"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc64 x86"
-IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
-
-COMMON_DEPEND="
-   dev-java/commons-net:0
-   X? ( dev-java/browserlauncher2:1.0 )
-"
-RDEPEND="
-   ${COMMON_DEPEND}
-   >=virtual/jre-1.8:*
-"
-DEPEND="
-   ${COMMON_DEPEND}
-   >=virtual/jdk-1.8:*
-   app-arch/xz-utils
-"
-
-mainclass() {
-   # read Main-Class from MANIFEST.MF
-   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
-}
-
-src_prepare() {
-   default
-
-   xdg_environment_reset
-
-   local X
-
-   # apply stdout corruption patch (z...@gentoo.org)
-   eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch"
-
-   # apply BrowserLauncher2 patch
-   use X && eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch"
-   rm -rf src/edu || die
-
-   # apply IDCTFast patch
-   eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch"
-
-   # apply XDG patch
-   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
-   eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch"
-
-   # copy build.xml
-   cp -f "${FILESDIR}/build-0.91.0.10.xml" build.xml || die
-
-   # patch executable and icon
-   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
-   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
-
-   # convert CRLF to LF
-   edos2unix *.txt MANIFEST.MF
-
-   # merge/remove resources depending on USE="X"
-   if use X; then
-   mv -f htmls resources/ || die
-   else
-   rm -rf src/net/sourceforge/dvb/projectx/gui || die
-   rm resources/*.gif || die
-   fi
-
-   # update library packages
-   cd lib || die
-   rm -f {commons-net,jakarta-oro}*.jar || die
-   java-pkg_jar-from commons-net
-   use X && java-pkg_jar-from browserlauncher2-1.0
-   java-pkg_ensure-no-bundled-jars
-}
-
-src_compile() {
-   local IDCT="idct-mjpeg"  # default IDCT implementation
-   if use x86 || use amd64; then
-   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
-   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
-   fi
-
-   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
-
-   cd lib/PORTABLE || die
-   emake CC="$(tc-getCC)" IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
-   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
-}
-
-src_install() {
-   java-pkg_dojar dist/${PN}.jar
-   java-pkg_doso lib/PORTABLE/libidctfast.so
-
-   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
-   --java_args "-Djava.awt.headless=true -Xmx256m"
-
-   if use X; then
-   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
-   --java_args "-Xmx256m"
-   dosym ${PN}_gui /usr/bin/${PN}
-   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
-   domenu *.desktop
-   else
-   dosym ${PN}_cli /usr/bin/${PN}
-   fi
-
-   dodoc *.txt
-   use doc && java-pkg_dojavadoc apidocs
-   use source && java-pkg_dosrc src
-}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-06-07 Thread Arthur Zamarin
commit: 061e54e4fcb9a1feff761225b183b7ab7cde689f
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun  7 15:05:12 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun  7 15:05:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=061e54e4

media-video/projectx: Stabilize 0.91.0.10-r5 ppc64, #933669

Signed-off-by: Arthur Zamarin  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r5.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
index cd7d06bf50b2..2b918e744003 100644
--- a/media-video/projectx/projectx-0.91.0.10-r5.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
@@ -20,7 +20,7 @@ S="${WORKDIR}/Project-X"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64 x86"
+KEYWORDS="amd64 ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-06-06 Thread Arthur Zamarin
commit: 7d05068e1f3d77354c0f88b41e08547bff75fb1b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun  7 05:14:42 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun  7 05:14:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d05068e

media-video/projectx: Stabilize 0.91.0.10-r5 amd64, #933669

Signed-off-by: Arthur Zamarin  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r5.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
index c5fc7fe05b80..cd7d06bf50b2 100644
--- a/media-video/projectx/projectx-0.91.0.10-r5.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
@@ -20,7 +20,7 @@ S="${WORKDIR}/Project-X"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64 x86"
+KEYWORDS="amd64 ~ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-06-06 Thread Arthur Zamarin
commit: f1e6d9e44d54d00ebfb77c74f71a3c645da341e8
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun  7 05:14:41 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun  7 05:14:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1e6d9e4

media-video/projectx: Stabilize 0.91.0.10-r5 x86, #933669

Signed-off-by: Arthur Zamarin  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r5.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
index 3e5d18a572cc..c5fc7fe05b80 100644
--- a/media-video/projectx/projectx-0.91.0.10-r5.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
@@ -20,7 +20,7 @@ S="${WORKDIR}/Project-X"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="~amd64 ~ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-05-08 Thread Daniel Pielmeier
commit: 374aa7a9d1f37c728157dab7672fb83d94140021
Author: Volkmar W. Pogatzki  pogatzki  net>
AuthorDate: Sun May  5 15:45:10 2024 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Wed May  8 21:21:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374aa7a9

media-video/projectx: update EAPI 7 -> 8

- Switches to java-pkg-simple
- No longer needs build.xml nor depends on ant
- Drops java-ant-2.eclass, edos2unix.eclass
- Uses the JAVA_MAIN_CLASS eclass variable for launchers

Signed-off-by: Volkmar W. Pogatzki  pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/36562
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r5.ebuild | 123 ++
 1 file changed, 123 insertions(+)

diff --git a/media-video/projectx/projectx-0.91.0.10-r5.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
new file mode 100644
index ..3e5d18a572cc
--- /dev/null
+++ b/media-video/projectx/projectx-0.91.0.10-r5.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit desktop java-pkg-2 java-pkg-simple toolchain-funcs xdg
+
+XDG_P="xdg-20100731"
+
+DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
+HOMEPAGE="https://project-x.sourceforge.net/;
+SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}-r4.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
+
+S="${WORKDIR}/Project-X"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+COMMON_DEPEND="
+   dev-java/commons-net:0
+   X? ( dev-java/browserlauncher2:1.0 )
+"
+RDEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jre-1.8:*
+"
+DEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jdk-1.8:*
+   app-arch/xz-utils
+"
+
+JAVA_ENCODING="iso-8859-1"
+JAVA_GENTOO_CLASSPATH="commons-net"
+JAVA_RESOURCE_DIRS="resources"
+JAVA_SRC_DIR="src"
+
+src_prepare() {
+   default
+
+   xdg_environment_reset
+
+   local X
+
+   # apply stdout corruption patch (z...@gentoo.org)
+   eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch"
+
+   # apply BrowserLauncher2 patch
+   if use X; then
+   eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch"
+   JAVA_GENTOO_CLASSPATH+=" browserlauncher2-1.0"
+   fi
+   rm -rf src/edu || die
+
+   # apply IDCTFast patch
+   eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch"
+
+   # apply XDG patch
+   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
+   eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch"
+
+   # patch executable and icon
+   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
+   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
+
+   JAVA_MAIN_CLASS="$(grep Main MANIFEST.MF | cut -d' ' -f2)"
+
+   # merge/remove resources depending on USE="X"
+   if use X; then
+   mv -f htmls resources/ || die
+   else
+   rm -rf src/net/sourceforge/dvb/projectx/gui || die
+   rm resources/*.gif || die
+   fi
+
+   # update library packages
+   cd lib || die
+   rm -f {commons-net,jakarta-oro}*.jar || die
+   java-pkg_jar-from commons-net
+   use X && java-pkg_jar-from browserlauncher2-1.0
+   java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+   local IDCT="idct-mjpeg"  # default IDCT implementation
+   if use x86 || use amd64; then
+   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
+   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
+   fi
+
+   java-pkg-simple_src_compile
+
+   cd lib/PORTABLE || die
+   emake CC="$(tc-getCC)" IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
+   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
+}
+
+src_install() {
+   java-pkg-simple_src_install
+   java-pkg_doso lib/PORTABLE/libidctfast.so
+
+   java-pkg_dolauncher ${PN}_cli --main ${JAVA_MAIN_CLASS} \
+   --java_args "-Djava.awt.headless=true -Xmx256m"
+
+   if use X; then
+   java-pkg_dolauncher ${PN}_gui --main ${JAVA_MAIN_CLASS} \
+   --java_args "-Xmx256m"
+   dosym ${PN}_gui /usr/bin/${PN}
+   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
+   domenu *.desktop
+   else
+   dosym ${PN}_cli /usr/bin/${PN}
+   fi
+
+   dodoc *.txt
+}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-05-04 Thread Daniel Pielmeier
commit: 5efd07e28911acaf7239a178fad66cfc274a817b
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sat May  4 09:39:39 2024 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sat May  4 09:39:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5efd07e2

media-video/projectx: fix variable order

Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r4.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
index 29c0eef255d3..57ef227ba394 100644
--- a/media-video/projectx/projectx-0.91.0.10-r4.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
@@ -16,6 +16,8 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${PF}.tar.xz
https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
 
+S="${WORKDIR}/Project-X"
+
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc64 x86"
@@ -35,8 +37,6 @@ DEPEND="
app-arch/xz-utils
 "
 
-S="${WORKDIR}/Project-X"
-
 mainclass() {
# read Main-Class from MANIFEST.MF
sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2024-03-08 Thread Daniel Pielmeier
commit: 3635f6cfa6f77755083191183169cc6fd65ac800
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Fri Mar  8 14:21:13 2024 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Fri Mar  8 14:21:13 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3635f6cf

media-video/projectx: update HOMEPAGE

Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r4.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
index bc9ed20e4ba0..29c0eef255d3 100644
--- a/media-video/projectx/projectx-0.91.0.10-r4.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -10,7 +10,7 @@ inherit desktop edos2unix java-pkg-2 java-ant-2 
toolchain-funcs xdg
 XDG_P="xdg-20100731"
 
 DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
-HOMEPAGE="http://project-x.sourceforge.net/;
+HOMEPAGE="https://project-x.sourceforge.net/;
 SRC_URI="https://dev.gentoo.org/~billie/distfiles/${PF}.tar.xz
https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2022-10-09 Thread Daniel Pielmeier
commit: aceece9147deb9e5003bd74babe21ef980c942ce
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sun Oct  9 12:23:31 2022 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sun Oct  9 12:23:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aceece91

media-video/projectx: Fix bug #/832383.

File is now preconverted to UTF encoding in an updated tarball thus
iconv is not needed anymore.

Closes: https://bugs.gentoo.org/832383
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/Manifest  |  2 +-
 ...ojectx-0.91.0.10-r3.ebuild => projectx-0.91.0.10-r4.ebuild} | 10 +-
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/media-video/projectx/Manifest b/media-video/projectx/Manifest
index 2b46414fb71f..72fcc246d26b 100644
--- a/media-video/projectx/Manifest
+++ b/media-video/projectx/Manifest
@@ -1,4 +1,4 @@
-DIST projectx-0.91.0.10.tar.xz 830104 BLAKE2B 
511481dd2c391a6a26acfa0603f1c221d013d334593cf8ce6da0cf09505387424e58772705e17f9e90da546c43ce5aad313723aafd36063c5cd4a46d93634f86
 SHA512 
681dae4fd368a00a7ada37f8e64271c838a9c3737008b6fcd7f74679ca9fdf2cce140b0627a4c77a9a00baea76659bad0d2d710511b66026f9597ad153a2e725
+DIST projectx-0.91.0.10-r4.tar.xz 830232 BLAKE2B 
26171e583dc608c181d3ab3de050beb569659dfa9cd681e161fd0ee7168c4d0bcdaefc1eb42323c8bf901a33f96ea627c01b0ba63f79519e1f6c5d7868331ec9
 SHA512 
004a8819736c426a27dbd896c125233a1014260ed211bdc7aa83b8aa220776297060755fdf6fb15c6a79e71b14ac166c7d423f3ac568a42e2a21ac8c3da8
 DIST projectx-icon.png 1692 BLAKE2B 
6da85b69961b81f64638b04860b467e8cf599287513d85157aa71e4575003b8ef6e96cbe4b0b40b54bb15b6ca74c14f4bf1855c80f1f6db89294567a77f9e151
 SHA512 
33d9e505140d2dd22d34f87ebff040530130bbb7d1e9958d7345f442bd3d6e17dff8d243e22f374217aed20139871e406e46ca6f03ca48eb338dc3630af2417a
 DIST projectx-idctfast.tar.xz 12444 BLAKE2B 
e4b2a6ab235601dbdd1acf8a73a14fecb5da455670bad52598e0dbd8a7300305fad1b22b3d550dd046dcac68975af4b225e042f7c968ce9108f702d01586302f
 SHA512 
85dd6dd0011c166aaefd47a47c4455dda68ba6da65c9eda5a996f7d078ce3900168714c0c72c6250f7b99181fda84c6d81e3afb392ace9c12c3c5690de01c1d8
 DIST xdg-20100731.java.xz 648 BLAKE2B 
8bd082c445d64051c65c66e8a22b61e582d04f1f650e3b15ee2f3400d47b10f137d245bd8a7633d96299e2c688f7bf836b59a4dd49ea3c181684a78fa55304c3
 SHA512 
8b5d8e695f3f052f889002dc93742da8ba9eada173cb10ad1db525e1ad89d1c8f44200d79dc02068ccf93fdbf2e8daa5bb359dae77bacbc89cb6d4895732774b

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
similarity index 92%
rename from media-video/projectx/projectx-0.91.0.10-r3.ebuild
rename to media-video/projectx/projectx-0.91.0.10-r4.ebuild
index 25f2b25ae070..bc9ed20e4ba0 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r4.ebuild
@@ -11,7 +11,7 @@ XDG_P="xdg-20100731"
 
 DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
 HOMEPAGE="http://project-x.sourceforge.net/;
-SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
+SRC_URI="https://dev.gentoo.org/~billie/distfiles/${PF}.tar.xz
https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
@@ -33,7 +33,6 @@ DEPEND="
${COMMON_DEPEND}
>=virtual/jdk-1.8:*
app-arch/xz-utils
-   virtual/libiconv
 "
 
 S="${WORKDIR}/Project-X"
@@ -74,13 +73,6 @@ src_prepare() {
# convert CRLF to LF
edos2unix *.txt MANIFEST.MF
 
-   # convert docs to utf-8
-   if [ -x "$(type -p iconv)" ]; then
-   for X in zutun.txt; do
-   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
-   done
-   fi
-
# merge/remove resources depending on USE="X"
if use X; then
mv -f htmls resources/ || die



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2022-10-08 Thread Sam James
commit: ac4bcd7cc3a10b7a82739257affc819fb05535ef
Author: Sam James  gentoo  org>
AuthorDate: Sat Oct  8 18:43:00 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Oct  8 18:43:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac4bcd7c

media-video/projectx: fix use of deprecated eutils

Signed-off-by: Sam James  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
index 366fdb7843d2..25f2b25ae070 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 JAVA_PKG_IUSE="doc source"
 
-inherit desktop eutils java-pkg-2 java-ant-2 toolchain-funcs xdg
+inherit desktop edos2unix java-pkg-2 java-ant-2 toolchain-funcs xdg
 
 XDG_P="xdg-20100731"
 



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2022-03-19 Thread Sam James
commit: b75e5d4d93aa0593407e5543acf7a91c5ce98dda
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 20 00:12:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 20 00:12:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b75e5d4d

media-video/projectx: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
index a6df47e09cb3..366fdb7843d2 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -107,7 +107,7 @@ src_compile() {
eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
 
cd lib/PORTABLE || die
-   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
+   emake CC="$(tc-getCC)" IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
 }
 



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2021-08-19 Thread Daniel Pielmeier
commit: c0b22030a7a5cd8c83ba049519e43a5baa4c4d5c
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Thu Aug 19 17:39:28 2021 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Thu Aug 19 17:39:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0b22030

media-video/projectx: Remove old.

Closes: https://bugs.gentoo.org/787446
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r2.ebuild | 134 --
 1 file changed, 134 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r2.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
deleted file mode 100644
index 9dc9a50eaad..000
--- a/media-video/projectx/projectx-0.91.0.10-r2.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-JAVA_PKG_IUSE="doc source"
-
-inherit desktop eutils java-pkg-2 java-ant-2 toolchain-funcs xdg
-
-XDG_P="xdg-20100731"
-
-DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
-HOMEPAGE="http://project-x.sourceforge.net/;
-SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc64 x86"
-IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
-
-COMMON_DEPEND="
-   dev-java/commons-net:0
-   X? ( dev-java/browserlauncher2:1.0 )
-"
-RDEPEND="
-   ${COMMON_DEPEND}
-   >=virtual/jre-1.5
-"
-DEPEND="
-   ${COMMON_DEPEND}
-   >=virtual/jdk-1.5
-   app-arch/xz-utils
-   virtual/libiconv
-"
-
-S="${WORKDIR}/Project-X"
-
-mainclass() {
-   # read Main-Class from MANIFEST.MF
-   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
-}
-
-src_prepare() {
-   default
-
-   xdg_environment_reset
-
-   local X
-
-   # apply stdout corruption patch (z...@gentoo.org)
-   eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch"
-
-   # apply BrowserLauncher2 patch
-   use X && eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch"
-   rm -rf src/edu || die
-
-   # apply IDCTFast patch
-   eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch"
-
-   # apply XDG patch
-   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
-   eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch"
-
-   # copy build.xml
-   cp -f "${FILESDIR}/build-0.91.0.10.xml" build.xml || die
-
-   # patch executable and icon
-   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
-   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
-
-   # convert CRLF to LF
-   edos2unix *.txt MANIFEST.MF
-
-   # convert docs to utf-8
-   if [ -x "$(type -p iconv)" ]; then
-   for X in zutun.txt; do
-   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
-   done
-   fi
-
-   # merge/remove resources depending on USE="X"
-   if use X; then
-   mv -f htmls resources/ || die
-   else
-   rm -rf src/net/sourceforge/dvb/projectx/gui || die
-   rm resources/*.gif || die
-   fi
-
-   # update library packages
-   cd lib || die
-   rm -f {commons-net,jakarta-oro}*.jar || die
-   java-pkg_jar-from commons-net
-   use X && java-pkg_jar-from browserlauncher2-1.0
-   java-pkg_ensure-no-bundled-jars
-}
-
-src_compile() {
-   local IDCT="idct-mjpeg"  # default IDCT implementation
-   if use x86 || use amd64; then
-   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
-   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
-   fi
-
-   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
-
-   cd lib/PORTABLE || die
-   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
-   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
-}
-
-src_install() {
-   java-pkg_dojar dist/${PN}.jar
-   java-pkg_doso lib/PORTABLE/libidctfast.so
-
-   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
-   --java_args "-Djava.awt.headless=true -Xmx256m"
-
-   if use X; then
-   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
-   --java_args "-Xmx256m"
-   dosym ${PN}_gui /usr/bin/${PN}
-   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
-   domenu *.desktop
-   else
-   dosym ${PN}_cli /usr/bin/${PN}
-   fi
-
-   dodoc *.txt
-   use doc && java-pkg_dojavadoc apidocs
-   use source && java-pkg_dosrc src
-}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2021-08-18 Thread Sam James
commit: b0a683b312ea3b5e5b2939d9c3cf5421a41dca80
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 19 01:07:28 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 19 01:07:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a683b3

media-video/projectx: Stabilize 0.91.0.10-r3 x86, #795978

Signed-off-by: Sam James  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
index d8f6c92c8c2..a6df47e09cb 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ppc64 ~x86"
+KEYWORDS="amd64 ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2021-08-10 Thread Agostino Sarubbo
commit: 597c9a1772c60267bcdf38718411f5ff66ff5974
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Aug 10 06:41:03 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Aug 10 06:41:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=597c9a17

media-video/projectx: amd64 stable wrt bug #795978

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
index 4659ae2a25b..d8f6c92c8c2 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ppc64 ~x86"
+KEYWORDS="amd64 ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2021-08-09 Thread Agostino Sarubbo
commit: 4843a62cee87e71e54b961a090ab0b03ebe87072
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Aug  9 06:41:19 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Aug  9 06:41:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4843a62c

media-video/projectx: ppc64 stable wrt bug #795978

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
index 2663408f4e0..4659ae2a25b 100644
--- a/media-video/projectx/projectx-0.91.0.10-r3.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="~amd64 ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2021-04-17 Thread Daniel Pielmeier
commit: d1d19f945b50ad3d430c1929594eb8f38f8727b1
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sat Apr 17 17:47:12 2021 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sat Apr 17 17:47:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d19f94

media-video/projectx: Bump java virtuals to 1.8.

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r3.ebuild | 134 ++
 1 file changed, 134 insertions(+)

diff --git a/media-video/projectx/projectx-0.91.0.10-r3.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
new file mode 100644
index 000..2663408f4e0
--- /dev/null
+++ b/media-video/projectx/projectx-0.91.0.10-r3.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+
+inherit desktop eutils java-pkg-2 java-ant-2 toolchain-funcs xdg
+
+XDG_P="xdg-20100731"
+
+DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
+HOMEPAGE="http://project-x.sourceforge.net/;
+SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+COMMON_DEPEND="
+   dev-java/commons-net:0
+   X? ( dev-java/browserlauncher2:1.0 )
+"
+RDEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jre-1.8:*
+"
+DEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jdk-1.8:*
+   app-arch/xz-utils
+   virtual/libiconv
+"
+
+S="${WORKDIR}/Project-X"
+
+mainclass() {
+   # read Main-Class from MANIFEST.MF
+   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
+}
+
+src_prepare() {
+   default
+
+   xdg_environment_reset
+
+   local X
+
+   # apply stdout corruption patch (z...@gentoo.org)
+   eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch"
+
+   # apply BrowserLauncher2 patch
+   use X && eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch"
+   rm -rf src/edu || die
+
+   # apply IDCTFast patch
+   eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch"
+
+   # apply XDG patch
+   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
+   eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch"
+
+   # copy build.xml
+   cp -f "${FILESDIR}/build-0.91.0.10.xml" build.xml || die
+
+   # patch executable and icon
+   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
+   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
+
+   # convert CRLF to LF
+   edos2unix *.txt MANIFEST.MF
+
+   # convert docs to utf-8
+   if [ -x "$(type -p iconv)" ]; then
+   for X in zutun.txt; do
+   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
+   done
+   fi
+
+   # merge/remove resources depending on USE="X"
+   if use X; then
+   mv -f htmls resources/ || die
+   else
+   rm -rf src/net/sourceforge/dvb/projectx/gui || die
+   rm resources/*.gif || die
+   fi
+
+   # update library packages
+   cd lib || die
+   rm -f {commons-net,jakarta-oro}*.jar || die
+   java-pkg_jar-from commons-net
+   use X && java-pkg_jar-from browserlauncher2-1.0
+   java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+   local IDCT="idct-mjpeg"  # default IDCT implementation
+   if use x86 || use amd64; then
+   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
+   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
+   fi
+
+   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
+
+   cd lib/PORTABLE || die
+   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
+   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
+}
+
+src_install() {
+   java-pkg_dojar dist/${PN}.jar
+   java-pkg_doso lib/PORTABLE/libidctfast.so
+
+   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
+   --java_args "-Djava.awt.headless=true -Xmx256m"
+
+   if use X; then
+   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
+   --java_args "-Xmx256m"
+   dosym ${PN}_gui /usr/bin/${PN}
+   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
+   domenu *.desktop
+   else
+   dosym ${PN}_cli /usr/bin/${PN}
+   fi
+
+   dodoc *.txt
+   use doc && java-pkg_dojavadoc apidocs
+   use source && java-pkg_dosrc src
+}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/, media-video/projectx/files/

2020-06-09 Thread Daniel Pielmeier
commit: d3281559023b42969aedac6224cbf6c88e5351ae
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Tue Jun  9 11:54:12 2020 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Tue Jun  9 11:54:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3281559

media-video/projectx: Remove old projectx-0.91.0.10-r1.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Daniel Pielmeier  gentoo.org>

 media-video/projectx/files/build-0.90.4.00_p33.xml |  77 -
 .../files/projectx-0.90.4.00_p33-bl2.patch |  15 ---
 .../files/projectx-0.90.4.00_p33-idctfast.patch|  37 --
 .../projectx-0.90.4.00_p33-stdout-corrupt.patch|  11 --
 .../files/projectx-0.90.4.00_p33-xdg.patch |  44 ---
 media-video/projectx/projectx-0.91.0.10-r1.ebuild  | 128 -
 6 files changed, 312 deletions(-)

diff --git a/media-video/projectx/files/build-0.90.4.00_p33.xml 
b/media-video/projectx/files/build-0.90.4.00_p33.xml
deleted file mode 100644
index f35638733b1..000
--- a/media-video/projectx/files/build-0.90.4.00_p33.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-  
-
-   
-   
-   
-   
-   
-   
-   
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-
-
-
-   
-
-
-
-
-

diff --git a/media-video/projectx/files/projectx-0.90.4.00_p33-bl2.patch 
b/media-video/projectx/files/projectx-0.90.4.00_p33-bl2.patch
deleted file mode 100644
index 7c5b48263ce..000
--- a/media-video/projectx/files/projectx-0.90.4.00_p33-bl2.patch
+++ /dev/null
@@ -1,15 +0,0 @@
 src/net/sourceforge/dvb/projectx/gui/Html.java 2006-11-25 
22:28:52.0 +0100
-+++ src/net/sourceforge/dvb/projectx/gui/Html.java 2007-06-10 
13:37:59.0 +0200
-@@ -159,9 +159,10 @@
-   {
-   try 
-   {
--  BrowserLauncher.openURL(u.toString());
-+  BrowserLauncher launcher = new 
BrowserLauncher();
-+  launcher.openURLinBrowser(u.toString());
-   } 
--  catch (IOException e) 
-+  catch (Exception e) 
-   {
-   
Common.setMessage(Resource.getString("msg.browser.launcher.error") + " " + e);
-   }

diff --git a/media-video/projectx/files/projectx-0.90.4.00_p33-idctfast.patch 
b/media-video/projectx/files/projectx-0.90.4.00_p33-idctfast.patch
deleted file mode 100644
index 8421dd36ae9..000
--- a/media-video/projectx/files/projectx-0.90.4.00_p33-idctfast.patch
+++ /dev/null
@@ -1,37 +0,0 @@
 src/net/sourceforge/dvb/projectx/video/MpvDecoder.java 2009-12-31 
15:24:13.0 +0100
-+++ src/net/sourceforge/dvb/projectx/video/MpvDecoder.java 2010-07-31 
14:32:19.945223425 +0200
-@@ -72,7 +72,7 @@
- 
- public class MpvDecoder extends Object {
- 
--  private IDCTRefNative idct;
-+  private IDCTFast idct;
-   private IDCTSseNative idctsse;
- 
-   private int preview_horizontal_size = 512;
-@@ -134,13 +134,13 @@
-   {
-   Arrays.fill(pixels2, 0xFF505050);
- 
--  idct = new IDCTRefNative();
-+  idct = new IDCTFast();
-   idctsse = new IDCTSseNative();
- 
--  if (IDCTRefNative.isLibraryLoaded())
-+  if (IDCTFast.isLibraryLoaded())
-   idct.init();
- 
--  if (IDCTRefNative.isLibraryLoaded() || 
IDCTSseNative.isLibraryLoaded())
-+  if (IDCTFast.isLibraryLoaded() || 
IDCTSseNative.isLibraryLoaded())
-   acceleration = true;
-   }
- 
-@@ -2399,7 +2399,7 @@
-   }
-   }
- 
--  else if (IDCTRefNative.isLibraryLoaded() && isAccelerated())
-+  else if (IDCTFast.isLibraryLoaded() && isAccelerated())
-   {
-   /* copy or add block data into picture */
-   for (comp=0; comphttp://project-x.sourceforge.net/;
-SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
-   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
-   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
-
-LICENSE="GPL-2"
-SLOT="0"

[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2020-05-18 Thread Agostino Sarubbo
commit: 17e56cfd70bb2cef7c5b0327d80ab82db9ce14ca
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon May 18 13:02:47 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon May 18 13:02:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17e56cfd

media-video/projectx: x86 stable wrt bug #723362

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r2.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
index 3b6d7ee32c4..9dc9a50eaad 100644
--- a/media-video/projectx/projectx-0.91.0.10-r2.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ppc64 ~x86"
+KEYWORDS="amd64 ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2020-05-18 Thread Agostino Sarubbo
commit: ac0a55ecb92b0ff9da9dafc4723b764d22be091b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon May 18 12:55:47 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon May 18 12:55:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0a55ec

media-video/projectx: amd64 stable wrt bug #723362

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r2.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
index 4bf0c90a859..3b6d7ee32c4 100644
--- a/media-video/projectx/projectx-0.91.0.10-r2.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ppc64 ~x86"
+KEYWORDS="amd64 ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2020-05-17 Thread Sergei Trofimovich
commit: b70f2f57091ef4160d60eaa468ad2f807c8ae800
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun May 17 10:02:54 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun May 17 10:02:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b70f2f57

media-video/projectx: stable 0.91.0.10-r2 for ppc64, bug #723362

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r2.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
index 664b3f10673..4bf0c90a859 100644
--- a/media-video/projectx/projectx-0.91.0.10-r2.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="~amd64 ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2019-04-07 Thread Daniel Pielmeier
commit: b7bea5e8345b1f4bec0bf6bb9c3835f8cc4e3912
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sun Apr  7 13:06:20 2019 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sun Apr  7 13:06:37 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7bea5e8

media-video/projectx: Remove old projectx-0.91.0.10.

Signed-off-by: Daniel Pielmeier  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 media-video/projectx/projectx-0.91.0.10.ebuild | 126 -
 1 file changed, 126 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10.ebuild 
b/media-video/projectx/projectx-0.91.0.10.ebuild
deleted file mode 100644
index fb44f2af60b..000
--- a/media-video/projectx/projectx-0.91.0.10.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-JAVA_PKG_IUSE="doc source"
-
-inherit eutils toolchain-funcs java-pkg-2 java-ant-2
-
-XDG_P="xdg-20100731"
-
-DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
-HOMEPAGE="http://project-x.sourceforge.net/;
-SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
-   http://sbriesen.de/gentoo/distfiles/${PN}-idctfast.tar.xz
-   http://sbriesen.de/gentoo/distfiles/${XDG_P}.java.xz
-   http://sbriesen.de/gentoo/distfiles/${PN}-icon.png;
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc64 x86"
-IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
-
-COMMON_DEP="dev-java/commons-net
-   X? ( =dev-java/browserlauncher2-1* )"
-
-RDEPEND=">=virtual/jre-1.5
-   ${COMMON_DEP}"
-
-DEPEND=">=virtual/jdk-1.5
-   app-arch/xz-utils
-   virtual/libiconv
-   ${COMMON_DEP}"
-
-S="${WORKDIR}/Project-X"
-
-mainclass() {
-   # read Main-Class from MANIFEST.MF
-   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
-}
-
-java_prepare() {
-   local X
-
-   # apply stdout corruption patch (z...@gentoo.org)
-   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-stdout-corrupt.patch"
-
-   # apply BrowserLauncher2 patch
-   use X && epatch "${FILESDIR}/${PN}-0.90.4.00_p33-bl2.patch"
-   rm -rf src/edu || die
-
-   # apply IDCTFast patch
-   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-idctfast.patch"
-
-   # apply XDG patch
-   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
-   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-xdg.patch"
-
-   # copy build.xml
-   cp -f "${FILESDIR}/build-0.90.4.00_p33.xml" build.xml || die
-
-   # patch executable and icon
-   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
-   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
-
-   # convert CRLF to LF
-   edos2unix *.txt MANIFEST.MF
-
-   # convert docs to utf-8
-   if [ -x "$(type -p iconv)" ]; then
-   for X in zutun.txt; do
-   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
-   done
-   fi
-
-   # merge/remove resources depending on USE="X"
-   if use X; then
-   mv -f htmls resources/ || die
-   else
-   rm -rf src/net/sourceforge/dvb/projectx/gui || die
-   rm resources/*.gif || die
-   fi
-
-   # update library packages
-   cd lib || die
-   rm -f {commons-net,jakarta-oro}*.jar || die
-   java-pkg_jar-from commons-net
-   use X && java-pkg_jar-from browserlauncher2-1.0
-   java-pkg_ensure-no-bundled-jars
-}
-
-src_compile() {
-   local IDCT="idct-mjpeg"  # default IDCT implementation
-   if use x86 || use amd64; then
-   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
-   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
-   fi
-
-   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
-
-   cd lib/PORTABLE || die
-   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
-   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
-}
-
-src_install() {
-   java-pkg_dojar dist/${PN}.jar
-   java-pkg_doso lib/PORTABLE/libidctfast.so
-
-   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
-   --java_args "-Djava.awt.headless=true -Xmx256m"
-
-   if use X; then
-   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
-   --java_args "-Xmx256m"
-   dosym ${PN}_gui /usr/bin/${PN}
-   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
-   domenu *.desktop
-   else
-   dosym ${PN}_cli /usr/bin/${PN}
-   fi
-
-   dodoc *.txt
-   use doc && java-pkg_dojavadoc apidocs
-   use source && java-pkg_dosrc src
-}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2019-04-01 Thread Thomas Deutschmann
commit: dcb31717c7637214f25e46ccd3c1cd36bd8e1bf2
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Mon Apr  1 19:52:52 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Mon Apr  1 19:57:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb31717

media-video/projectx: x86 stable (bug #681500)

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r1.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
index 6553ab7214d..4b8c94a37d7 100644
--- a/media-video/projectx/projectx-0.91.0.10-r1.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ppc64 ~x86"
+KEYWORDS="amd64 ppc64 x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEP="dev-java/commons-net:0



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2019-03-24 Thread Sergei Trofimovich
commit: 2ebe0509c85407cde0e66cbf8e0197d97d79a884
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Mar 24 20:16:58 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Mar 24 20:16:58 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ebe0509

media-video/projectx: stable 0.91.0.10-r1 for ppc64, bug #681500

Package-Manager: Portage-2.3.62, Repoman-2.3.12
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 media-video/projectx/projectx-0.91.0.10-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r1.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
index 28b9987cb4d..6553ab7214d 100644
--- a/media-video/projectx/projectx-0.91.0.10-r1.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc64 ~x86"
+KEYWORDS="amd64 ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEP="dev-java/commons-net:0



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/files/

2019-03-24 Thread Daniel Pielmeier
commit: cc07a449bd92fe67283a166cf55d3c645e89ccd9
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sun Mar 24 11:23:38 2019 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sun Mar 24 11:23:38 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc07a449

media-video/projectx: Add missing patches.

Signed-off-by: Daniel Pielmeier  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 media-video/projectx/files/build-0.91.0.10.xml | 77 ++
 .../projectx/files/projectx-0.91.0.10-bl2.patch| 15 +
 .../files/projectx-0.91.0.10-idctfast.patch| 37 +++
 .../files/projectx-0.91.0.10-stdout-corrupt.patch  | 11 
 .../projectx/files/projectx-0.91.0.10-xdg.patch| 44 +
 5 files changed, 184 insertions(+)

diff --git a/media-video/projectx/files/build-0.91.0.10.xml 
b/media-video/projectx/files/build-0.91.0.10.xml
new file mode 100644
index 000..f35638733b1
--- /dev/null
+++ b/media-video/projectx/files/build-0.91.0.10.xml
@@ -0,0 +1,77 @@
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+  
+
+   
+   
+   
+   
+   
+   
+   
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+
+   
+
+
+
+
+

diff --git a/media-video/projectx/files/projectx-0.91.0.10-bl2.patch 
b/media-video/projectx/files/projectx-0.91.0.10-bl2.patch
new file mode 100644
index 000..3799c15e19c
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-bl2.patch
@@ -0,0 +1,15 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/gui/Html.java   2006-11-25 
22:28:52.0 +0100
 Project-X/src/net/sourceforge/dvb/projectx/gui/Html.java   2007-06-10 
13:37:59.0 +0200
+@@ -159,9 +159,10 @@
+   {
+   try 
+   {
+-  BrowserLauncher.openURL(u.toString());
++  BrowserLauncher launcher = new 
BrowserLauncher();
++  launcher.openURLinBrowser(u.toString());
+   } 
+-  catch (IOException e) 
++  catch (Exception e) 
+   {
+   
Common.setMessage(Resource.getString("msg.browser.launcher.error") + " " + e);
+   }

diff --git a/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch 
b/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch
new file mode 100644
index 000..84b7893c835
--- /dev/null
+++ b/media-video/projectx/files/projectx-0.91.0.10-idctfast.patch
@@ -0,0 +1,37 @@
+--- Project-X/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java   
2009-12-31 15:24:13.0 +0100
 Project-X/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java   
2010-07-31 14:32:19.945223425 +0200
+@@ -72,7 +72,7 @@
+ 
+ public class MpvDecoder extends Object {
+ 
+-  private IDCTRefNative idct;
++  private IDCTFast idct;
+   private IDCTSseNative idctsse;
+ 
+   private int preview_horizontal_size = 512;
+@@ -134,13 +134,13 @@
+   {
+   Arrays.fill(pixels2, 0xFF505050);
+ 
+-  idct = new IDCTRefNative();
++  idct = new IDCTFast();
+   idctsse = new IDCTSseNative();
+ 
+-  if (IDCTRefNative.isLibraryLoaded())
++  if (IDCTFast.isLibraryLoaded())
+   idct.init();
+ 
+-  if (IDCTRefNative.isLibraryLoaded() || 
IDCTSseNative.isLibraryLoaded())
++  if (IDCTFast.isLibraryLoaded() || 
IDCTSseNative.isLibraryLoaded())
+   acceleration = true;
+   }
+ 
+@@ -2407,7 +2407,7 @@
+   }
+   }
+ 
+-  else if (IDCTRefNative.isLibraryLoaded() && isAccelerated())
++  else if (IDCTFast.isLibraryLoaded() && isAccelerated())
+   {
+   /* copy or add block data into picture */
+   for (comp=0; comp

[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2019-03-24 Thread Daniel Pielmeier
commit: 326b74f81e9368f38e9132e746dd56346632132e
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sun Mar 24 11:21:59 2019 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sun Mar 24 11:21:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=326b74f8

media-video/projectx: Revision bump to projectx-0.91.0.10-r2.

Switch to EAPI 7.

Signed-off-by: Daniel Pielmeier  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 media-video/projectx/projectx-0.91.0.10-r2.ebuild | 134 ++
 1 file changed, 134 insertions(+)

diff --git a/media-video/projectx/projectx-0.91.0.10-r2.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
new file mode 100644
index 000..664b3f10673
--- /dev/null
+++ b/media-video/projectx/projectx-0.91.0.10-r2.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+
+inherit desktop eutils java-pkg-2 java-ant-2 toolchain-funcs xdg
+
+XDG_P="xdg-20100731"
+
+DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
+HOMEPAGE="http://project-x.sourceforge.net/;
+SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+COMMON_DEPEND="
+   dev-java/commons-net:0
+   X? ( dev-java/browserlauncher2:1.0 )
+"
+RDEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jre-1.5
+"
+DEPEND="
+   ${COMMON_DEPEND}
+   >=virtual/jdk-1.5
+   app-arch/xz-utils
+   virtual/libiconv
+"
+
+S="${WORKDIR}/Project-X"
+
+mainclass() {
+   # read Main-Class from MANIFEST.MF
+   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
+}
+
+src_prepare() {
+   default
+
+   xdg_environment_reset
+
+   local X
+
+   # apply stdout corruption patch (z...@gentoo.org)
+   eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch"
+
+   # apply BrowserLauncher2 patch
+   use X && eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch"
+   rm -rf src/edu || die
+
+   # apply IDCTFast patch
+   eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch"
+
+   # apply XDG patch
+   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
+   eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch"
+
+   # copy build.xml
+   cp -f "${FILESDIR}/build-0.91.0.10.xml" build.xml || die
+
+   # patch executable and icon
+   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
+   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
+
+   # convert CRLF to LF
+   edos2unix *.txt MANIFEST.MF
+
+   # convert docs to utf-8
+   if [ -x "$(type -p iconv)" ]; then
+   for X in zutun.txt; do
+   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
+   done
+   fi
+
+   # merge/remove resources depending on USE="X"
+   if use X; then
+   mv -f htmls resources/ || die
+   else
+   rm -rf src/net/sourceforge/dvb/projectx/gui || die
+   rm resources/*.gif || die
+   fi
+
+   # update library packages
+   cd lib || die
+   rm -f {commons-net,jakarta-oro}*.jar || die
+   java-pkg_jar-from commons-net
+   use X && java-pkg_jar-from browserlauncher2-1.0
+   java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+   local IDCT="idct-mjpeg"  # default IDCT implementation
+   if use x86 || use amd64; then
+   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
+   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
+   fi
+
+   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
+
+   cd lib/PORTABLE || die
+   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
+   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
+}
+
+src_install() {
+   java-pkg_dojar dist/${PN}.jar
+   java-pkg_doso lib/PORTABLE/libidctfast.so
+
+   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
+   --java_args "-Djava.awt.headless=true -Xmx256m"
+
+   if use X; then
+   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
+   --java_args "-Xmx256m"
+   dosym ${PN}_gui /usr/bin/${PN}
+   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
+   domenu *.desktop
+   else
+   dosym ${PN}_cli /usr/bin/${PN}
+   fi
+
+   dodoc *.txt
+   use doc && java-pkg_dojavadoc apidocs
+   use source && java-pkg_dosrc src
+}



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2019-03-24 Thread Agostino Sarubbo
commit: 956891135a9196d7f963adb94bf3d316fe0c1561
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Mar 24 09:59:59 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Mar 24 09:59:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95689113

media-video/projectx: amd64 stable wrt bug #681500

Signed-off-by: Agostino Sarubbo  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
RepoMan-Options: --include-arches="amd64"

 media-video/projectx/projectx-0.91.0.10-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-video/projectx/projectx-0.91.0.10-r1.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
index 930ed27128c..28b9987cb4d 100644
--- a/media-video/projectx/projectx-0.91.0.10-r1.ebuild
+++ b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,7 +18,7 @@ SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~ppc64 ~x86"
 IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
 
 COMMON_DEP="dev-java/commons-net:0



[gentoo-commits] repo/gentoo:master commit in: media-video/projectx/

2017-11-19 Thread Daniel Pielmeier
commit: 0d60d54d088b3b709ed3bf0e7fd23d02b796930f
Author: Daniel Pielmeier  gentoo  org>
AuthorDate: Sun Nov 19 11:19:22 2017 +
Commit: Daniel Pielmeier  gentoo  org>
CommitDate: Sun Nov 19 11:19:22 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d60d54d

media-video/projectx: Switch to EAPI 6.

Package-Manager: Portage-2.3.13, Repoman-2.3.3

 media-video/projectx/projectx-0.91.0.10-r1.ebuild | 128 ++
 1 file changed, 128 insertions(+)

diff --git a/media-video/projectx/projectx-0.91.0.10-r1.ebuild 
b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
new file mode 100644
index 000..930ed27128c
--- /dev/null
+++ b/media-video/projectx/projectx-0.91.0.10-r1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils toolchain-funcs java-pkg-2 java-ant-2
+
+XDG_P="xdg-20100731"
+
+DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings"
+HOMEPAGE="http://project-x.sourceforge.net/;
+SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz
+   https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz
+   https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+COMMON_DEP="dev-java/commons-net:0
+   X? ( dev-java/browserlauncher2:1.0 )"
+
+RDEPEND=">=virtual/jre-1.5
+   ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.5
+   app-arch/xz-utils
+   virtual/libiconv
+   ${COMMON_DEP}"
+
+S="${WORKDIR}/Project-X"
+
+mainclass() {
+   # read Main-Class from MANIFEST.MF
+   sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" || die
+}
+
+src_prepare() {
+   default
+
+   local X
+
+   # apply stdout corruption patch (z...@gentoo.org)
+   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-stdout-corrupt.patch"
+
+   # apply BrowserLauncher2 patch
+   use X && epatch "${FILESDIR}/${PN}-0.90.4.00_p33-bl2.patch"
+   rm -rf src/edu || die
+
+   # apply IDCTFast patch
+   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-idctfast.patch"
+
+   # apply XDG patch
+   cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die
+   epatch "${FILESDIR}/${PN}-0.90.4.00_p33-xdg.patch"
+
+   # copy build.xml
+   cp -f "${FILESDIR}/build-0.90.4.00_p33.xml" build.xml || die
+
+   # patch executable and icon
+   sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \
+   -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die
+
+   # convert CRLF to LF
+   edos2unix *.txt MANIFEST.MF
+
+   # convert docs to utf-8
+   if [ -x "$(type -p iconv)" ]; then
+   for X in zutun.txt; do
+   iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f 
"${X}~" "${X}" || die
+   done
+   fi
+
+   # merge/remove resources depending on USE="X"
+   if use X; then
+   mv -f htmls resources/ || die
+   else
+   rm -rf src/net/sourceforge/dvb/projectx/gui || die
+   rm resources/*.gif || die
+   fi
+
+   # update library packages
+   cd lib || die
+   rm -f {commons-net,jakarta-oro}*.jar || die
+   java-pkg_jar-from commons-net
+   use X && java-pkg_jar-from browserlauncher2-1.0
+   java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+   local IDCT="idct-mjpeg"  # default IDCT implementation
+   if use x86 || use amd64; then
+   use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx"
+   use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse"
+   fi
+
+   eant build $(use_doc) -Dmanifest.mainclass=$(mainclass)
+
+   cd lib/PORTABLE || die
+   emake CC=$(tc-getCC) IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \
+   CPLAT="${CFLAGS} -O3 -ffast-math -fPIC"
+}
+
+src_install() {
+   java-pkg_dojar dist/${PN}.jar
+   java-pkg_doso lib/PORTABLE/libidctfast.so
+
+   java-pkg_dolauncher ${PN}_cli --main $(mainclass) \
+   --java_args "-Djava.awt.headless=true -Xmx256m"
+
+   if use X; then
+   java-pkg_dolauncher ${PN}_gui --main $(mainclass) \
+   --java_args "-Xmx256m"
+   dosym ${PN}_gui /usr/bin/${PN}
+   newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
+   domenu *.desktop
+   else
+   dosym ${PN}_cli /usr/bin/${PN}
+   fi
+
+   dodoc *.txt
+   use doc && java-pkg_dojavadoc apidocs
+   use source && java-pkg_dosrc src
+}