forked from ktgw0316/LightZone-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightzone-9999.ebuild
78 lines (63 loc) · 1.77 KB
/
lightzone-9999.ebuild
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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/Aries85/LightZone.git"}
inherit git-r3
else
SRC_URI="https://github.com/Aries85/LightZone/archive/${PV}.tar.gz"
fi
DESCRIPTION="Open-source professional-level digital darkroom software"
HOMEPAGE="http://lightzoneproject.org/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND="virtual/jdk
dev-java/ant-core
dev-java/javahelp
dev-util/pkgconfig
dev-vcs/git
media-libs/lensfun
media-libs/lcms
media-libs/libjpeg-turbo
media-libs/tiff
net-misc/rsync
sys-devel/autoconf
x11-libs/libX11"
RDEPEND="virtual/jre
dev-java/javahelp
dev-libs/libxml2
media-libs/lensfun
media-libs/lcms
media-libs/libjpeg-turbo
media-libs/tiff"
pkg_setup() {
if [[ ${PV} != "9999" ]]; then
S="${WORKDIR}/LightZone-${PV}"
fi
# export JAVA_HOME=$(java-config --jdk-home)
# export ANT_HOME=/usr/share/ant
}
src_compile() {
ant -f "${S}"/linux/build.xml jar
}
src_install() {
cd "${S}"
_libdir=/usr/$(get_libdir)
install -dm 0755 "${D}/${_libdir}/${PN}"
cp -pH lightcrafts/products/dcraw_lz "${D}/${_libdir}/${PN}"
cp -pH lightcrafts/products/LightZone-forkd "${D}/${_libdir}/${PN}"
cp -pH linux/products/*.so "${D}/${_libdir}/${PN}"
_javadir=/usr/share
install -dm 0755 "${D}/${_javadir}/${PN}/lib"
cp -pH linux/products/*.jar "${D}/${_javadir}/${PN}/lib"
_datadir=/usr/share
install -dm 0755 "${D}/${_datadir}/applications"
install -m 644 linux/products/lightzone.desktop "${D}/${_datadir}/applications/"
cp -pHR linux/icons "${D}/${_datadir}/"
_bindir=/usr/bin
install -dm 0755 "${D}/${_bindir}"
install -m 755 "linux/products/${PN}" "${D}/${_bindir}"
}