/[gentoo-alt]/trunk/prefix/eclass/aolserver.eclass
Gentoo

Contents of /trunk/prefix/eclass/aolserver.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1205 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/aolserver.eclass,v 1.8 2005/07/11 15:08:06 swegener Exp $
4
5 # Authors:
6 # Ian Leitch <port001@gentoo.org>
7
8 EXPORT_FUNCTIONS src_compile src_install pkg_postinst
9
10 DEPEND="www-servers/aolserver"
11 RDEPEND="${DEPEND}"
12
13 NS_CONF="/usr/share/aolserver" # /include/ is implied by the Makefile
14 NS_BASE="/usr/lib/aolserver"
15
16 SRC_URI="mirror://sourceforge/aolserver/${P}.tar.gz"
17 HOMEPAGE="http://www.aolserver.com"
18 LICENSE="MPL-1.1"
19 SLOT="0"
20
21 aolserver_src_compile() {
22
23 emake NSBUILD=1 INST=${NS_CONF} AOLSERVER=${NS_CONF} ${MAKE_FLAGS} || die "emake failed"
24 }
25
26 aolserver_src_install() {
27
28 find ${S} -type d -name CVS -prune | xargs rm -rf
29
30 into ${NS_BASE}
31
32 if [[ -e "${S}/${PN}.so" ]] ; then
33 dobin ${S}/${PN}.so
34 fi
35
36 if [[ -e "${S}/lib${PN}.so" ]] ; then
37 dolib.so ${S}/lib${PN}.so
38 fi
39
40 for mod in ${TCL_MODS} ; do
41 insinto /usr/lib/aolserver/modules/tcl
42 doins ${mod}
43 done
44
45 for doc in ${DOCS} ; do
46 dodoc ${doc}
47 done
48 }
49
50 aolserver_pkg_postinst() {
51
52 echo
53 einfo "To enable the use of ${PN} you must add the module to your AOLServer configuration"
54 echo
55 }

  ViewVC Help
Powered by ViewVC 1.1.20