summaryrefslogtreecommitdiffstats
path: root/dev-libs/libds/libds-0.1.2.ebuild
blob: 597982de3545535e976273b0dc7108b5fb2c6698 (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://dside.dyndns.org/files/adas/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
}