/[gentoo-x86]/net-im/minbif/minbif-1.0.4.ebuild
Gentoo

Contents of /net-im/minbif/minbif-1.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 1 12:20:35 2013 UTC (5 years, 6 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup due bug #151880

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/minbif/minbif-1.0.4.ebuild,v 1.1 2011/02/25 19:41:41 cedk Exp $
4
5 EAPI=2
6
7 inherit cmake-utils eutils
8
9 DESCRIPTION="an IRC gateway to IM networks"
10 HOMEPAGE="http://minbif.im/"
11 SRC_URI="http://symlink.me/attachments/download/90/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~x86"
16 IUSE="gnutls +imlib +libcaca pam video xinetd"
17
18 DEPEND=">=net-im/pidgin-2.6
19 video? ( >=net-im/pidgin-2.6[gstreamer] net-libs/farsight2 )
20 libcaca? ( media-libs/libcaca media-libs/imlib2 )
21 imlib? ( media-libs/imlib2 )
22 pam? ( sys-libs/pam )
23 gnutls? ( net-libs/gnutls )"
24 RDEPEND="${DEPEND}
25 virtual/logger
26 xinetd? ( sys-apps/xinetd )"
27
28 src_prepare() {
29 sed -i "s/-Werror//g" CMakeLists.txt || die "sed failed"
30
31 sed -i "s#share/doc/minbif#share/doc/${P}#" \
32 CMakeLists.txt || die "sed failed"
33
34 if use xinetd; then
35 sed -i "s/type\s=\s[0-9]/type = 0/" \
36 minbif.conf || die "sed failed"
37 fi
38 }
39
40 src_configure() {
41 use video && ! use libcaca && \
42 die "You need to enable libcaca if you enable video"
43
44 local mycmakeargs
45 mycmakeargs="${mycmakeargs}
46 -DCONF_PREFIX=${PREFIX:-/etc/minbif}
47 $(cmake-utils_use_enable libcaca CACA)
48 $(cmake-utils_use_enable video VIDEO)
49 $(cmake-utils_use_enable imlib IMLIB)
50 $(cmake-utils_use_enable pam PAM)
51 $(cmake-utils_use_enable gnutls TLS)"
52
53 cmake-utils_src_configure
54 }
55
56 pkg_preinst() {
57 enewgroup minbif
58 enewuser minbif -1 -1 /var/lib/minbif minbif
59 }
60
61 src_install() {
62 cmake-utils_src_install
63 keepdir /var/lib/minbif
64 fperms 700 /var/lib/minbif
65 fowners minbif:minbif /var/lib/minbif
66
67 dodoc ChangeLog README
68 doman man/minbif.8
69
70 if use xinetd; then
71 insinto /etc/xinetd.d
72 newins doc/minbif.xinetd minbif
73 fi
74
75 newinitd "${FILESDIR}"/minbif.initd minbif || die
76
77 dodir /usr/share/minbif
78 insinto /usr/share/minbif
79 doins -r scripts
80 }

  ViewVC Help
Powered by ViewVC 1.1.20