aboutsummaryrefslogtreecommitdiff
blob: 540017c6cae6ffaa91b721edec01814bbfc7cd1b (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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils

DESCRIPTION="TIGR Foundation for C++"
HOMEPAGE="http://sourceforge.net/apps/mediawiki/amos/index.php?title=AutoEditor"
SRC_URI="ftp://ftp.cbcb.umd.edu/pub/software/autoEditor/autoEditor-1.20.tar.gz"

# the one bundled in autoEditor-1.20/TigrFoundation-2.0/ is same with the one in bambus
# but in bambus-2.33/src/TIGR_Foundation_CC/ there are 3 getopt.* files in addition

LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S="${WORKDIR}"/autoEditor-1.20/TigrFoundation-2.0

src_prepare(){
	epatch "${FILESDIR}"/TigrFoundation-all-patches.patch
	sed -i "s:/export/usr/local:${D}/usr:g" Makefile || die
}

src_install(){
	emake install DESTDIR="${D}/${EPREFIX}"/usr # Makefile does not respect DESTDIR
	mkdir -p "${D}/${EPREFIX}" || die
	mv "${D}"/usr "${D}/${EPREFIX}"/ || die
}