aboutsummaryrefslogtreecommitdiff
blob: 3a8e96fa0acd004a8620d86c609bd90e19c0f13a (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
43
44
45
46
47
48
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

DESCRIPTION="A collection of routine to handle a variety of topics"
HOMEPAGE="http://www.neu.uni-bayreuth.de/de/Uni_Bayreuth/Fakultaeten/1_Mathematik_Physik_und_Informatik/Fachgruppe_Informatik/prof_diskrete_algorithmen/en/research/SYMMETRICA/index.html"
MY_P=SYM$(replace_all_version_separators ' _')
SRC_URI="http://www.neu.uni-bayreuth.de/de/Uni_Bayreuth/Fakultaeten/1_Mathematik_Physik_und_Informatik/Fachgruppe_Informatik/prof_diskrete_algorithmen/en/research/SYMMETRICA/${MY_P}_tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~ppc64"
IUSE=""

#### Remove the following line when moving this ebuild to the main tree!
RESTRICT="mirror"

RDEPEND=""
DEPEND=""

S="${WORKDIR}"

src_unpack() {
	cd "${S}"
#	unpack ${A} actually doesn't work with this archive. Not sure why.
	tar xfz "${DISTDIR}/${MY_P}_tar.gz"

#	symmetrica by itself is just a bunch of files and a few headers
#	plus documentation that you can use as you wish in your programs.
#	For sage and ease of use we make it into a library with the following
#	makefile (developped by F. Bissey and T. Abbott (sage on debian).
	cp "${FILESDIR}/makefile" "${S}/makefile"
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"

#	symmetrica's documentation are just text files with a ".doc" extension.
	dodoc README *.doc
}

pkg_postinst() {
	elog "The symmetrica ebuild is still under development."
	elog "Help us improve the ebuild in:"
	elog "http://bugs.gentoo.org/show_bug.cgi?id=232014"
}