summaryrefslogtreecommitdiff
blob: 23e1a9dd1ae4c6e8c7bd100ca442b4cbc1ac8acd (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-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/rec/rec-1.6.ebuild,v 1.7 2010/02/21 11:59:15 patrick Exp $

inherit eutils

DESCRIPTION="Reverse Engineering Compiler"
HOMEPAGE="http://www.backerstreet.com/rec/rec.htm"
SRC_URI="http://www.backerstreet.com/rec/rec16lx.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="strip"
DEPEND="app-arch/unzip"
RDEPEND="sys-libs/ncurses sys-libs/gpm"
S=${WORKDIR}

src_unpack() {
	unzip -L -d "${S}" -q "${DISTDIR}/${A}" || die
}

src_compile() {
	sed -i 's#\(^.*$\)#/opt/rec/\1#g' proto.lst
}

src_install() {
	dodir /opt/rec
	into /opt
	dobin rec

	insinto /opt/rec
	doins proto.lst
	doins string.o stdio.o stdlib.o fcntl.o winbase.o winuser.o wingdi.o
	dodoc readme copyrite
}

pkg_postinst() {
	elog "/opt/rec/proto.lst should be copied into the working"
	elog "directory of new projects, this will make rec aware of common"
	elog "prototypes."
}