summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/unifdef')
-rw-r--r--dev-util/unifdef/Manifest1
-rw-r--r--dev-util/unifdef/metadata.xml5
-rw-r--r--dev-util/unifdef/unifdef-2.10.ebuild21
3 files changed, 27 insertions, 0 deletions
diff --git a/dev-util/unifdef/Manifest b/dev-util/unifdef/Manifest
new file mode 100644
index 000000000000..27ee5a3916dd
--- /dev/null
+++ b/dev-util/unifdef/Manifest
@@ -0,0 +1 @@
+DIST unifdef-2.10.tar.gz 73285 SHA256 1375528c8983de06bbf074b6cfa60fcf0257ea8efcbaec0953b744d2e3dcc5dd SHA512 39d4551f43fa8eccaee8a9fc469b5ddc8ca8eb0e0ce46c17c3a8300f7e6960fbf0960f364a83df20059b4aa623edc7c3c16df1b7162f068332e6c066d7ffe9b3 WHIRLPOOL 54d1e1730cd7eaafba828c508d682dbfa888675e2ae4b709b16c5bc5eb713be6e54afacab10c521a340612ac91d30d9565250e43d4929b13ef2768506bc3ac0a
diff --git a/dev-util/unifdef/metadata.xml b/dev-util/unifdef/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/dev-util/unifdef/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
diff --git a/dev-util/unifdef/unifdef-2.10.ebuild b/dev-util/unifdef/unifdef-2.10.ebuild
new file mode 100644
index 000000000000..5d3b0e50eb94
--- /dev/null
+++ b/dev-util/unifdef/unifdef-2.10.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="remove #ifdef'ed lines from a file while otherwise leaving the file alone"
+HOMEPAGE="http://dotat.at/prog/unifdef/"
+SRC_URI="http://dotat.at/prog/unifdef/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -sparc-fbsd -x86-fbsd ~amd64-linux ~x86-linux"
+
+DOCS=( README )
+
+src_prepare() {
+ sed -i '/^prefix/s:=.*:=/usr:' Makefile || die
+ tc-export CC
+}