blob: 8308737ebec90ddb69b1d5d40a7c3515fb5f42ea (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/gallery-remote/gallery-remote-1.3.2.ebuild,v 1.5 2005/01/20 15:33:18 luckyduck Exp $
inherit java-pkg eutils
DESCRIPTION="Gallery Remote is a client-side Java application that provides users with a rich front-end to Gallery. This application makes it easier to upload images to your Gallery."
HOMEPAGE="http://gallery.sourceforge.net/gallery_remote.php"
SRC_URI="mirror://gentoo/gallery-remote-${PV}-cvs-gentoo.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="jikes"
DEPEND=">=virtual/jdk-1.4
dev-java/apple-java-extensions-bin
dev-java/jsx
dev-java/metadata-extractor
dev-java/java-config
jikes? ( dev-java/jikes )"
RDEPEND="${DEPEND}
media-gfx/imagemagick
media-libs/jpeg"
S=${WORKDIR}/gallery_remote
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/build.xml.patch
epatch ${FILESDIR}/1.3.2.patch
}
src_compile() {
local antflags="jar -Dcompile.classpath=$(java-config -p apple-java-extensions-bin,jsx,metadata-extractor)"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "failed to compile"
}
src_install() {
dodoc ChangeLog LICENSE README
java-pkg_dojar GalleryRemote.jar
dodir /usr/share/gallery-remote/{imagemagick,jpegtran}
cp imagemagick/im.properties.preinstalled ${D}/usr/share/gallery-remote/imagemagick/im.properties
cp jpegtran/jpegtran.preinstalled ${D}/usr/share/gallery-remote/jpegtran/jpegtran.properties
cp -r img ${D}/usr/share/gallery-remote/
dodir /usr/bin/
echo "#!/bin/bash" > ${D}/usr/bin/gallery-remote
echo "cd /usr/share/gallery-remote/" >> ${D}/usr/bin/gallery-remote
echo "\$(java-config -J) -jar \$(java-config -p gallery-remote)" >> ${D}/usr/bin/gallery-remote
chmod 755 ${D}/usr/bin/gallery-remote
}
|