blob: 05d272f4c3d5071eaefed2cbb97d63d3dbd6b9c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit fdo-mime java-pkg-2 java-ant-2
MY_PN="${PN^}"
DESCRIPTION="Java subtitle editor"
HOMEPAGE="http://www.jubler.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-source-${PV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="mplayer spell nls"
RDEPEND="
mplayer? ( media-video/mplayer[libass] )
spell? ( app-text/aspell )
>=virtual/jre-1.6"
DEPEND="
>=virtual/jdk-1.6"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
default
local REMOVE_PLUGINS=() _plugin
use mplayer || REMOVE_PLUGINS+=( mplayer )
use spell || REMOVE_PLUGINS+=( aspell zemberek )
for _plugin in "${REMOVE_PLUGINS[@]}"; do
rm -rv "plugins/${_plugin}" || die
done
}
src_compile() {
local JUBLER_TARGETS=()
use nls || JUBLER_TARGETS+=( core help )
eant -f "${S}/build.xml" "${JUBLER_TARGETS[@]}"
}
src_install() {
DESTDIR="${D}" eant linuxdesktopintegration
rm -rv "${D}/usr/share/menu" || die
doicon "resources/installers/linux/${PN}.png"
domenu "resources/installers/linux/${PN}.desktop"
java-pkg_dojar dist/Jubler.jar
java-pkg_dolauncher "${PN}" --main Jubler
if use nls; then
insinto "/usr/share/${PN}/lib/i18n/"
doins dist/i18n/*.jar
fi
insinto "/usr/share/${PN}/lib/themes"
doins dist/themes/coretheme.jar
insinto "/usr/share/${PN}/lib/lib"
doins dist/lib/*.jar
insinto "/usr/share/${PN}/help"
doins resources/help/*
doman "resources/installers/linux/${PN}.1"
einstalldocs
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|