summaryrefslogtreecommitdiff
blob: 91021cc263a00c149a9695442f93edc54e2e51f2 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/matrixssl/matrixssl-1.8.3.ebuild,v 1.1 2007/03/25 17:02:33 vapier Exp $

inherit eutils

MY_P=${P//./-}
DESCRIPTION="embedded SSL implementation"
HOMEPAGE="http://www.matrixssl.org/"
SRC_URI="mirror://gentoo/${MY_P}-open.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"

DEPEND=""

S=${WORKDIR}/${MY_P}-open/src

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${PN}-1.8.3-build.patch
}

src_install() {
	dolib.so libmatrixssl.so || die
	dolib.a libmatrixssl.a || die
	insinto /usr/include
	cd ..
	doins matrixCommon.h matrixSsl.h || die
	if use doc ; then
		cd "${S}"/..
		dodoc doc/* || die
	fi
	if use examples ; then
		cd "${S}"/..
		docinto examples
		dodoc examples/* || die
	fi
}