blob: b74eb42e38ba686014257a709fcfbd2ac8a194c3 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/swl/swl-0.4.0_rc5-r2.ebuild,v 1.2 2005/08/03 01:38:36 trapni Exp $
inherit flag-o-matic multilib
DESCRIPTION="mod_transform plugins for communicating with a YaCS server"
HOMEPAGE="http://battousak.mylair.de/yacs/"
SRC_URI="http://battousai.mylair.de/dist/yacs/yacs-${PV}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0.6"
KEYWORDS="~amd64 ~x86"
IUSE="debug multislot"
RDEPEND=">=www-apache/mod_transform-0.7.0_pre20070204
>=dev-libs/libyacsclient-${PV}
>=dev-libs/libyacsutil-${PV}"
DEPEND="${RDEPEND}"
BASE_DIR=${BASE_DIR:-/usr}
S="${WORKDIR}/yacs-${PV}"
src_compile() {
use debug && append-flags -O0 -g3
use debug || append-flags -DNDEBUG=1
useq multislot && [[ $BASE_DIR = "/usr" ]] && BASE_DIR="${BASE_DIR}/yacs/${SLOT}"
einfo "Configuring for prefix ${BASE_DIR} ..."
./autogen.sh || die "autogen.sh failed"
./configure \
--prefix="${BASE_DIR}" \
--host="${CHOST}" \
--libdir="${BASE_DIR}/$(get_libdir)" \
--without-libyacsutil \
--disable-server \
--without-libyacsclient \
|| die "./configure failed"
cd clients/${PN/yacs/plugins} || die
emake || die "make failed"
}
src_install() {
cd clients/${PN/yacs/plugins} || die
make install DESTDIR="${D}" || die
# cleanup unwanted files from plugin/module dirs
find ${D}/usr/lib/apache2/modules/mod_transform \( -name '*.a' -o -name '*.la' \) -exec rm -f {} \;
# dodoc AUTHORS ChangeLog* NEWS README* TODO
true
}
# vim:ai:noet:ts=4:nowrap
|