summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2005-11-12 10:47:16 +0000
committerTavis Ormandy <taviso@gentoo.org>2005-11-12 10:47:16 +0000
commit1e29e8ebcf7c727763d13f504272e40d70b2709d (patch)
treeb47bc3d7e6c85637242f39fc52248e256faaa537 /dev-util/skelgen
parentold (diff)
downloadhistorical-1e29e8ebcf7c727763d13f504272e40d70b2709d.tar.gz
historical-1e29e8ebcf7c727763d13f504272e40d70b2709d.tar.bz2
historical-1e29e8ebcf7c727763d13f504272e40d70b2709d.zip
install the templates as documentation
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'dev-util/skelgen')
-rw-r--r--dev-util/skelgen/ChangeLog5
-rw-r--r--dev-util/skelgen/Manifest4
-rw-r--r--dev-util/skelgen/skelgen-1.2.ebuild40
3 files changed, 14 insertions, 35 deletions
diff --git a/dev-util/skelgen/ChangeLog b/dev-util/skelgen/ChangeLog
index 9faf733789b1..d3f5ec5b2fd3 100644
--- a/dev-util/skelgen/ChangeLog
+++ b/dev-util/skelgen/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-util/skelgen
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/skelgen/ChangeLog,v 1.1 2005/11/11 15:39:41 taviso Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/skelgen/ChangeLog,v 1.2 2005/11/12 10:47:16 taviso Exp $
+
+ 12 Nov 2005; Tavis Ormandy <taviso@gentoo.org> skelgen-1.2.ebuild:
+ install the templates as documentation
*skelgen-1.2 (11 Nov 2005)
diff --git a/dev-util/skelgen/Manifest b/dev-util/skelgen/Manifest
index 74b231b512ca..2e3b3ff00e67 100644
--- a/dev-util/skelgen/Manifest
+++ b/dev-util/skelgen/Manifest
@@ -1,4 +1,4 @@
-MD5 748186cc7dad461187bc9cfba71128e2 skelgen-1.2.ebuild 1576
-MD5 bd903b1ee289e8e42885cc21cf44a79b ChangeLog 339
+MD5 e56b89c0d16a9443c55d8bd9b74d2adc skelgen-1.2.ebuild 1022
+MD5 bc385ac88c28da34c85b3bf9b71890e7 ChangeLog 450
MD5 8fc22f08ecb2e292e60ce7553c58d0c2 metadata.xml 222
MD5 aae4f1803ec82a8c50fd0a418a14f832 files/digest-skelgen-1.2 97
diff --git a/dev-util/skelgen/skelgen-1.2.ebuild b/dev-util/skelgen/skelgen-1.2.ebuild
index 902764e55409..04fa4e49e9d4 100644
--- a/dev-util/skelgen/skelgen-1.2.ebuild
+++ b/dev-util/skelgen/skelgen-1.2.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/skelgen/skelgen-1.2.ebuild,v 1.1 2005/11/11 15:39:41 taviso Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/skelgen/skelgen-1.2.ebuild,v 1.2 2005/11/12 10:47:16 taviso Exp $
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="A Skeleton Source File Generator"
HOMEPAGE="http://www.fluidstudios.com/"
@@ -15,43 +15,19 @@ DEPEND="app-arch/unzip"
RDEPEND=""
S=${WORKDIR}/source
-# where macros and templates are installed
-SGPREFIX="/usr/share/skelgen"
-
-src_unpack() {
- # by default skelgen looks in pwd for macros and templates
- # this changes it to look in /usr/share/skelgen.
- # skelgen allows users to override the path with an env var or
- # command line argument.
- unpack ${A}; cd ${S}
- einfo "Setting prefix..."
- ebegin " ${SGPREFIX}"
- sed -i 's#\(prefix\)(".");#\1("'${SGPREIX}'");#g' main.cpp || {
- einfo $?
- die "sed failed"
- }
- eend $?
- einfo "...done."
-}
-
src_compile() {
# Makefile uses $STRIPPER to strip executable, so use true
# instead and let portage handle that.
append-flags -c
- emake COMPILER_OPTIONS="${CXXFLAGS}" STRIPPER="true" || die
+
+ emake COMPILER="$(tc-getCXX)" COMPILER_OPTIONS="${CXXFLAGS}" \
+ LINKER="$(tc-getCXX) ${LDFLAGS}" \
+ STRIPPER="true" || die
}
src_install() {
dobin skelgen
dodoc readme.txt
-
- dodir ${SGPREFIX}
- dodir ${SGPREFIX}/macros
- dodir ${SGPREFIX}/templates
-
- insinto ${SGPREFIX}/macros
- doins macros/{common.macro,personal.macro,work.macro}
-
- insinto ${SGPREFIX}/templates
- doins templates/{default.{cpp,h},fluid.{cpp,h},gpl.{c,h},skelgen.{cpp,h}}
+ dodoc macros/{common.macro,personal.macro,work.macro}
+ dodoc templates/{default.{cpp,h},fluid.{cpp,h},gpl.{c,h},skelgen.{cpp,h}}
}