summaryrefslogtreecommitdiffstats
path: root/dev-libs/libds/libds-0.0.12.ebuild
blob: bd054368582b0555323464c57751b35ca4029e42 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 

inherit eutils

DESCRIPTION="LibDS is OS abstraction library"
SRC_URI="http://localhost/releases/opc-${PV}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 amd64"
DEPEND="dev-libs/libxml2"

S=${WORKDIR}/opc-${PV}

src_unpack() {
    unpack opc-${PV}.tar.bz2 || die
}

src_compile() {
    make create_includes || die
    make -C libds || die
}

src_install() {
    into /usr
    mkdir -p ${D}/usr/lib/ || die
    mkdir -p ${D}/usr/include/libds/ || die
    install -c libds/libds.so ${D}/usr/lib/libds.so.${PV} || die
    ln -s libds.so.${PV} ${D}/usr/lib/libds.so || die
    cp -L includes/libds/* ${D}/usr/include/libds || die
}