diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-06-25 00:20:39 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-06-25 00:20:52 +0200 |
commit | b4a80e881552a07abae77bbff14530f6ff74469f (patch) | |
tree | f477d366ac4dc989ccd714e123cd2acb7f8c87c1 /media-video/bdsup2sub | |
parent | app-accessibility/simon: Remove bogus Qt4WebKit header (diff) | |
download | gentoo-b4a80e881552a07abae77bbff14530f6ff74469f.tar.gz gentoo-b4a80e881552a07abae77bbff14530f6ff74469f.tar.bz2 gentoo-b4a80e881552a07abae77bbff14530f6ff74469f.zip |
media-video/bdsup2sub: EAPI 6 bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'media-video/bdsup2sub')
-rw-r--r-- | media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild | 56 | ||||
-rw-r--r-- | media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch | 4 |
2 files changed, 58 insertions, 2 deletions
diff --git a/media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild b/media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild new file mode 100644 index 000000000000..72f449b2a644 --- /dev/null +++ b/media-video/bdsup2sub/bdsup2sub-4.0.0-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +XDG_P="xdg-20100731" + +MY_PN="BDSup2Sub" + +DESCRIPTION="A tool to convert and tweak bitmap based subtitle streams" +HOMEPAGE="http://bdsup2sub.javaforge.com/help.htm" +SRC_URI=" + http://sbriesen.de/gentoo/distfiles/${P}.tar.xz + http://sbriesen.de/gentoo/distfiles/${XDG_P}.java.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=virtual/jre-1.6" + +DEPEND=" + >=virtual/jdk-1.6 + app-arch/xz-utils" + +S="${WORKDIR}/${PN}/${PV}" + +PATCHES=( "${FILESDIR}/${P}-xdg.patch" ) + +src_prepare() { + default + + # apply XDG patch + cp -v "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die + + # copy build.xml + cp -f "${FILESDIR}/build-${PV}.xml" build.xml || die +} + +src_compile() { + eant build $(use_doc) +} + +src_install() { + java-pkg_dojar "dist/${MY_PN}.jar" + java-pkg_dolauncher "${PN}" --main "${MY_PN}" --java_args -Xmx256m + newicon bin_copy/icon_32.png "${MY_PN}.png" + make_desktop_entry "${MY_PN}" "${MY_PN}" "${MY_PN}" + use doc && java-pkg_dojavadoc apidocs + use source && java-pkg_dosrc src +} diff --git a/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch index a590ae983201..3f68beb6d495 100644 --- a/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch +++ b/media-video/bdsup2sub/files/bdsup2sub-4.0.0-xdg.patch @@ -1,5 +1,5 @@ ---- src/deadbeef/SupTools/Core.java 2010-07-29 13:01:48.000000000 +0200 -+++ src/deadbeef/SupTools/Core.java 2010-08-01 02:19:25.215473885 +0200 +--- a/src/deadbeef/SupTools/Core.java 2010-07-29 13:01:48.000000000 +0200 ++++ b/src/deadbeef/SupTools/Core.java 2010-08-01 02:19:25.215473885 +0200 @@ -22,6 +22,8 @@ import deadbeef.Tools.Props;
import deadbeef.Tools.ToolBox;
|