| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/skelgen/skelgen-1.2.ebuild,v 1.5 2008/12/31 21:01:17 mpagano Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit eutils flag-o-matic toolchain-funcs |
| 8 |
|
| 9 |
DESCRIPTION="A Skeleton Source File Generator" |
| 10 |
HOMEPAGE="http://www.fluidstudios.com/" |
| 11 |
SRC_URI="http://www.fluidstudios.com/pub/FluidStudios/Tools/Fluid_Studios_Skeleton_Source_File_Generator-${PV}.zip" |
| 12 |
LICENSE="free-noncomm" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="~amd64 x86" |
| 15 |
IUSE="" |
| 16 |
DEPEND="app-arch/unzip" |
| 17 |
RDEPEND="" |
| 18 |
S=${WORKDIR}/source |
| 19 |
|
| 20 |
src_prepare() { |
| 21 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
| 22 |
} |
| 23 |
|
| 24 |
src_compile() { |
| 25 |
# Makefile uses $STRIPPER to strip executable, so use true |
| 26 |
# instead and let portage handle that. |
| 27 |
emake \ |
| 28 |
COMPILER="$(tc-getCXX)" \ |
| 29 |
COMPILER_OPTIONS="-c ${CXXFLAGS}" \ |
| 30 |
LINKER="$(tc-getCXX) ${LDFLAGS}" \ |
| 31 |
STRIPPER="true" |
| 32 |
} |
| 33 |
|
| 34 |
src_install() { |
| 35 |
dobin skelgen |
| 36 |
dodoc readme.txt |
| 37 |
dodoc macros/{common.macro,personal.macro,work.macro} |
| 38 |
dodoc templates/{default.{cpp,h},fluid.{cpp,h},gpl.{c,h},skelgen.{cpp,h}} |
| 39 |
} |