blob: 048bfb2b2cfdcaaf171771544b10962a988fbd9d (
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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/confix-wrapper/confix-wrapper-0.ebuild,v 1.2 2008/06/16 08:38:51 haubi Exp $
DESCRIPTION="Wrapper to select either confix1.py or confix2.py"
HOMEPAGE="http://confix.sourceforge.net"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
src_install() {
dodir /usr/bin
cat >> "${D}"usr/bin/confix <<EOF
#! /bin/sh
confixpy=
if [ -f ./Confix2.dir ]; then
confixpy=confix2.py
elif [ -f ./Makefile.py ]; then
confixpy=confix1.py
else
confixpy=confix2.py
fi
case \$# in
0) exec \${confixpy} ;;
*) exec \${confixpy} "\$@" ;;
esac
EOF
fperms a+x /usr/bin/confix || die "cannot set permissions"
dosym confix /usr/bin/confix.py || die "cannot create 'confix' symlink"
}
|