You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/pccts/pccts-1.33.33.ebuild

66 lines
1.7 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/pccts/pccts-1.33.33.ebuild,v 1.24 2010/09/19 23:43:33 jer Exp $
inherit eutils
DESCRIPTION="Purdue Compiler Construction Tool Set is an embedded C/C++ parser generator"
HOMEPAGE="http://www.polhode.com/"
SRC_URI="http://www.polhode.com/pccts133mr33.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gentoo.diff
}
src_compile() {
emake CC="$(tc-getCC)" COPT="${CFLAGS}" || die "compilation failed"
}
src_install() {
# main binaries
dobin bin/{antlr,dlg,genmk,sor} || die
# .c and .cpp files go into /usr/include/pccts also,
# because genmk looks for them for being included in output-files
# (which are c/c++) generated from grammar-files
# right now i include _everything_ just to make sure
# it doesn't break pccts-based projects
#
# if i dive further into the details of genmk.c
# it should be possible to put that stuff into /usr/share/pccts
#
# the M$ and MAC specific stuff gets _not_ included
#
# main includes
insinto /usr/include/pccts
doins h/*.{h,c,cpp} || die
# sorcerer includes
insinto /usr/include/pccts/sorcerer
doins sorcerer/h/*.h || die
# sorcerer libraries
insinto /usr/include/pccts/sorcerer/lib
doins sorcerer/lib/*.{h,c,cpp} || die
# documentation
# leaving out the M$ and MAC stuff
dodoc CHANGES* KNOWN_PROBLEMS* README RIGHTS history.txt history.ps
dodoc sorcerer/README sorcerer/UPDATES
# manual pages
doman dlg/dlg.1 antlr/antlr.1
}