summaryrefslogtreecommitdiff
blob: ce4b0826509e45c90f72e6191907bd7d8709939e (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/mercury-bin/mercury-bin-1710.ebuild,v 1.2 2005/12/29 00:17:49 humpback Exp $

inherit eutils java-pkg

MY_PVR=${PVR/rc/RC}

DESCRIPTION="MSN and Jabber client in Java"
HOMEPAGE="http://www.mercury.to/"

##Mercury.to does not provided http or ftp links so i provide here
SRC_URI="http://felisberto.net/~humpback/${MY_PVR}.zip"

LICENSE="mercury"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RESTRICT="nostrip"

##No webcam support, requires JNI files  that are only for x86
IUSE=""


DEPEND="app-arch/unzip
		>=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.5
		=dev-java/jgoodies-looks-1.3*
		dev-java/jdictrayapi
		dev-java/xpp3
		=dev-java/jdom-1.0"

S=${WORKDIR}

src_unpack() {
	unpack ${MY_PVR}.zip
	cd ${S}
	#rm -f *.dll *.so
	#Clean the dllStuff.jar from things we dont need
	#cd lib
	#mkdir dllStuff
	#cd dllStuff
	#unzip ../dllStuff.jar
#	rm -rf ../dllStuff.jar org/jdesktop x10gimli com/jeans
	#rm -rf ../dllStuff.jar x10gimli com/jeans # Problems with jdictrayapi in amd64
	# it looks to me that one can use the .so file that comes with the package
	# but not the one in portage
	#cd ${S}
	rm lib/jdom1_0.jar # jdom
	#rm lib/JFlash.jar # seems to be trial from http://www.javaapis.com/jflashplayer/
					#which says its windows only
	rm lib/xmlpull.jar # xpp3
}

src_install() {
	#rebuild the dllStuff.jar
	#cd ${S}/lib/dllStuff
	#jar cf ../dllStuff.jar *
	#cd ${S}
	#rm -rf lib/dllStuff

	#Start installing stuff
	insinto /opt/${PN}/resources
	doins -r resources/*
	dojar lib/*


	insinto /usr/share/pixmaps
	newins  ${FILESDIR}/icon32.gif mercury.gif

	exeinto /opt/bin
	newexe ${FILESDIR}/mercury.sh mercury

	make_desktop_entry mercury "Mercury MSN client" /usr/share/pixmaps/mercury.gif

	# Adding env.d LDPATH setting to prevent a Mercury bug
	echo 'LDPATH="/opt/mercury-bin"' > 30mercury
	doenvd 30mercury
}