/[gentoo-x86]/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild
Gentoo

Contents of /media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 14 02:57:57 2010 UTC (4 years, 4 months ago) by sbriesen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
added app-arch/xz-utils dependency, solving bug #332513.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/bdsup2sub/bdsup2sub-4.0.0-r1.ebuild,v 1.1 2010/08/01 00:45:48 sbriesen Exp $
4
5 EAPI="3"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit eutils java-pkg-2 java-ant-2
10
11 XDG_P="xdg-20100731"
12
13 DESCRIPTION="A tool to convert and tweak bitmap based subtitle streams"
14 HOMEPAGE="http://bdsup2sub.javaforge.com/help.htm"
15 SRC_URI="http://sbriesen.de/gentoo/distfiles/${P}.tar.xz
16 http://sbriesen.de/gentoo/distfiles/${XDG_P}.java.xz"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE=""
22
23 RDEPEND=">=virtual/jre-1.6"
24 DEPEND=">=virtual/jdk-1.6
25 app-arch/xz-utils"
26
27 S="${WORKDIR}/${PN}/${PV}"
28
29 java_prepare() {
30 # apply XDG patch
31 cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java"
32 epatch "${FILESDIR}/${P}-xdg.patch"
33
34 # copy build.xml
35 cp -f "${FILESDIR}/build-${PV}.xml" build.xml || die
36 }
37
38 src_compile() {
39 eant build $(use_doc)
40 }
41
42 src_install() {
43 java-pkg_dojar dist/BDSup2Sub.jar
44 java-pkg_dolauncher BDSup2Sub --main BDSup2Sub --java_args -Xmx256m
45 newicon bin_copy/icon_32.png BDSup2Sub.png
46 make_desktop_entry BDSup2Sub BDSup2Sub BDSup2Sub
47 use doc && java-pkg_dojavadoc apidocs
48 use source && java-pkg_dosrc src
49 }

  ViewVC Help
Powered by ViewVC 1.1.20