blob: b56730b3eeae3aeccfe35f0b9f211849d182c32f (
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
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/ucon64/ucon64-2.0.0.ebuild,v 1.7 2009/06/06 17:49:56 nixnut Exp $
DESCRIPTION="The backup tool and wonderful emulator's Swiss Army knife program"
HOMEPAGE="http://ucon64.sourceforge.net/"
SRC_URI="mirror://sourceforge/ucon64/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
DEPEND="sys-libs/zlib"
S=${WORKDIR}/${P}-src
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "/^CFLAGS/s/-O3/${CFLAGS}/" \
-e "/^LDFLAGS/s/-s$/${LDFLAGS}/" \
src/{,libdiscmage/}Makefile.in || die "sed failed"
}
src_compile() {
local myconf
if [[ ! -e /usr/include/sys/io.h ]] ; then
ewarn "Disabling support for parallel port"
myconf="${myconf} --disable-parallel"
fi
cd src
econf ${myconf} || die
emake || die "emake failed"
}
src_install() {
dobin src/ucon64 || die "dobin failed"
dolib.so src/libdiscmage/discmage.so || die "dolib.so failed"
dodoc GoodCodes.txt
dohtml -x src -r -A png,jpg *
}
pkg_postinst() {
echo
elog "In order to use ${PN}, please create the directory ~/.ucon64/dat"
elog "The command to do that is:"
elog " mkdir -p ~/.ucon64/dat"
elog "Then, you can copy your DAT file collection to ~/.ucon64/dat"
elog
elog "To enable Discmage support, cp /usr/lib/discmage.so to ~/.ucon64"
elog "The command to do that is:"
elog " cp /usr/lib/discmage.so ~/.ucon64/"
elog
elog "Be sure to check ~/.ucon64rc for some options after"
elog "you've run uCON64 for the first time"
}
|