summaryrefslogtreecommitdiff
blob: 7d7e9a8e3746cd0ace42b4e4909fcb35a2f921fe (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils versionator
DESCRIPTION="The original \"Instant Message\" system client"

HOMEPAGE="http://packages.debian.org/unstable/source/zephyr"

MY_PV=$(replace_version_separator 3 '.SNAPSHOT_')
MY_PV=${MY_PV%%_*}

SRC_URI="http://ftp.debian.org/debian/pool/main/z/zephyr/${PN}_${MY_PV}.orig.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE="krb4 X"

DEPEND="krb4? ( app-crypt/mit-krb5 )
	sys-libs/ncurses
	sys-libs/readline
	X? || (
		virtual/x11
		(
			x11-libs/libSM
			x11-libs/libXau
			x11-libs/libXdmcp
			x11-libs/libXmu
			x11-libs/libXpm
		)
	)"

S=${WORKDIR}/${PN}

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch ${FILESDIR}/${P}-debian.patch
}

src_compile() {
	econf $(use_with krb4 krb4=/usr) $(use_with X x) || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR=${D} install || die "make install failed"

	newinitd ${FILESDIR}/zhm.initd zhm
	newconfd ${FILESDIR}/zhm.confd zhm
}