forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cook-1.0.2-r1.ebuild
43 lines (30 loc) · 1.1 KB
/
cook-1.0.2-r1.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit toolchain-funcs
DESCRIPTION="Embedded language which can be used as a macro preprocessor"
HOMEPAGE="http://cook.sourceforge.net/"
SRC_URI="mirror://sourceforge/cook/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos ~sparc-solaris"
IUSE=""
DEPEND=""
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
}
src_install() {
use prefix || EPREFIX=
dodoc README doc/cook.txt doc/cook.html || die "dodoc failed"
insinto /usr/share/doc/${PF}/example
doins test/pcb.dbdef test/pcb.dg test/pcbprol.ps test/tempsens.pcb || die "doins failed"
newbin src/cook cookproc || die "newbin failed"
cat > "${T}"/README.Gentoo <<EOF
NOTICE:
${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc in Gentoo
-- Karl Trygve Kalleberg <[email protected]>
EOF
dodoc "${T}"/README.Gentoo || die "dodoc failed"
}
pkg_postinst() {
ewarn "${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc"
}