blob: ed9d435621b425870e533c465016af2a12e81e20 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/bcpp/bcpp-20050725.ebuild,v 1.7 2010/01/15 21:17:31 fauli Exp $
inherit eutils
DESCRIPTION="Indents C/C++ source code"
HOMEPAGE="http://invisible-island.net/bcpp/"
SRC_URI="ftp://invisible-island.net/bcpp/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-etc-cfg-files.patch"
}
src_install() {
make DESTDIR="${D}" install || die
dodoc CHANGES MANIFEST README VERSION txtdocs/hirachy.txt \
txtdocs/manual.txt
# install our configuration files
insinto /etc/bcpp
doins bcpp.cfg indent.cfg
}
pkg_postinst() {
elog "Check the documentation for more information on how to"
elog "Run bcpp. Please note that in order to get help for"
elog "bcpp, please run bcpp -h and not the command by itself."
elog ""
elog "Configuration files are at /etc/bcpp."
elog "To use them, use the -c option followed by the filename."
}
|