add old ebuilds from svn ub0rlay
[ub0rlay.git] / dev-util / dsss / dsss-0.75.ebuild
1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit eutils
6
7 DESCRIPTION="the D Shared Software System"
8 HOMEPAGE="http://www.dsource.org/projects/dsss"
9 SRC_URI="http://svn.dsource.org/projects/dsss/downloads/${PV}/${P}.tar.bz2"
10
11 LICENSE="MIT"
12 SLOT="0"
13 KEYWORDS="~amd64"
14 IUSE=""
15
16 DEPEND="!dev-libs/phobos
17         !dev-libs/tango"
18 RDEPEND=""
19
20 pkg_setup(){
21
22         if ! built_with_use sys-devel/gcc d; then
23                    eerror "                                                 "
24                    eerror "you need to compile sys-devel/gcc with d useflag "
25                    eerror "                                                 "
26                    die "No suitable D compiler found!"
27         fi
28
29 }
30
31 src_compile(){
32
33 emake -j1 -f Makefile.gdc.posix || die "make failed"
34
35 }
36
37 src_install(){
38
39 ./dsss install --prefix=${D}/usr/ --sysconfdir=${D}/etc/ \
40 --includedir=${D}/usr/include/d/ || die "install failed"
41
42 }
43