Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 271091 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-im/psi/psi-0.13_rc1.ebuild (-23 / +23 lines)
Lines 4-10 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit eutils qt4 multilib
7
inherit eutils multilib qt4
8
8
9
MY_P="${P/_rc/-rc}"
9
MY_P="${P/_rc/-rc}"
10
10
Lines 20-26 Link Here
20
LICENSE="GPL-2"
20
LICENSE="GPL-2"
21
SLOT="0"
21
SLOT="0"
22
KEYWORDS="~amd64 ~x86"
22
KEYWORDS="~amd64 ~x86"
23
IUSE="crypt dbus debug doc spell ssl xscreensaver extras"
23
IUSE="crypt dbus debug doc extras jingle spell ssl xscreensaver"
24
RESTRICT="test"
24
RESTRICT="test"
25
25
26
LANGS="cs de eo es_ES fr it mk pl pt_BR ru uk ur_PK vi zh zh_TW"
26
LANGS="cs de eo es_ES fr it mk pl pt_BR ru uk ur_PK vi zh zh_TW"
Lines 29-47 Link Here
29
	#SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm"
29
	#SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm"
30
done
30
done
31
31
32
COMMON_DEPEND=">=x11-libs/qt-gui-4.4:4[qt3support,dbus?]
32
RDEPEND=">=x11-libs/qt-gui-4.4:4[qt3support,dbus?]
33
	>=app-crypt/qca-2.0.2:2
33
	>=app-crypt/qca-2.0.2:2
34
	spell? ( app-text/aspell )
34
	spell? ( app-text/aspell )
35
	xscreensaver? ( x11-libs/libXScrnSaver )"
35
	xscreensaver? ( x11-libs/libXScrnSaver )"
36
36
DEPEND="${RDEPEND}
37
DEPEND="${COMMON_DEPEND}
38
	doc? ( app-doc/doxygen )"
37
	doc? ( app-doc/doxygen )"
38
PDEPEND="crypt? ( app-crypt/qca-gnupg:2 )
39
	jingle? ( net-libs/psimedia )
40
	ssl? ( app-crypt/qca-ossl:2 )"
39
41
40
RDEPEND="${COMMON_DEPEND}
42
S="${WORKDIR}"/${MY_P}
41
	crypt? ( >=app-crypt/qca-gnupg-2.0.0_beta2 )
42
	ssl? ( >=app-crypt/qca-ossl-2.0.0_beta2 )"
43
44
S=${WORKDIR}/${MY_P}
45
43
46
src_prepare() {
44
src_prepare() {
47
	if use extras; then
45
	if use extras; then
Lines 60-86 Link Here
60
			-e 's:\(^#define PROG_NAME "Psi\):\1+:' \
58
			-e 's:\(^#define PROG_NAME "Psi\):\1+:' \
61
				-i src/applicationinfo.cpp || die
59
				-i src/applicationinfo.cpp || die
62
	fi
60
	fi
63
	rm -rf third-party/qca # We use system libraries.
64
65
}
61
}
66
62
67
src_configure() {
63
src_configure() {
64
	# cannot use econf because of non-standard configure script
68
	# disable growl as it is a MacOS X extension only
65
	# disable growl as it is a MacOS X extension only
69
	local myconf="--prefix=/usr --qtdir=/usr"
66
	local confcmd="./configure
70
	myconf="${myconf} --disable-growl --disable-bundled-qca"
67
			--prefix=/usr
71
	use debug && myconf="${myconf} --enable-debug"
68
			--qtdir=/usr
72
	use dbus || myconf="${myconf} --disable-qdbus"
69
			--disable-bundled-qca
73
	use spell || myconf="${myconf} --disable-aspell"
70
			--disable-growl
74
	use xscreensaver || myconf="${myconf} --disable-xss"
71
			$(use dbus || echo '--disable-qdbus')
72
			$(use debug && echo '--enable-debug')
73
			$(use spell || echo '--disable-aspell')
74
			$(use xscreensaver || echo '--disable-xss')"
75
75
76
	# cannot use econf because of non-standard configure script
76
	echo ${confcmd}
77
	./configure ${myconf} || die "configure failed"
77
	${confcmd} || die "configure failed"
78
79
	eqmake4
78
}
80
}
79
81
80
src_compile() {
82
src_compile() {
81
	eqmake4 ${PN}.pro
83
	SUBLIBS="-L/usr/$(get_libdir)/qca2" emake || die "emake failed"
82
83
	SUBLIBS="-L/usr/${get_libdir}/qca2" emake || die "emake failed"
84
84
85
	if use doc; then
85
	if use doc; then
86
		cd doc
86
		cd doc

Return to bug 271091