]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Gentoo ebuilds
authorDale Weiler <killfieldengine@gmail.com>
Tue, 4 Jun 2013 17:43:20 +0000 (17:43 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Tue, 4 Jun 2013 17:43:20 +0000 (17:43 +0000)
distro/gentoo/INSTALL [new file with mode: 0644]
distro/gentoo/gmqcc-0.3.0.ebuild [new file with mode: 0644]

diff --git a/distro/gentoo/INSTALL b/distro/gentoo/INSTALL
new file mode 100644 (file)
index 0000000..8a3a950
--- /dev/null
@@ -0,0 +1,35 @@
+To use the ebuilds provided in this gentoo directory you first must
+create a directory in your overlay tree.
+
+If you don't already have your own directory for custom ebuilds, you can
+create one. If you already have one, and that directory is set in your
+/etc/make.conf for PORTDIR_OVERLAY, this step can be skiped. Otherwise
+if you don't already, you can create one as such.
+
+# mkdir -p /usr/local/portage
+# vim /etc/make.conf
+       Set PORTDIR_OVERLAY=/usr/local/portage
+       The save and exit
+
+Once that is completed, or you skiped that step, you need to create a
+directory in your overlay tree for gmqcc, this can be done with. It should
+(subsitute [[PORTDIR_OVERLAY]] with the one set in /etc/make.conf)
+
+# mkdir -p [[PORTDIR_OVERLAY]]/gmqcc
+
+After the directory is created you need to move the correct version ebuild
+into that directory depending on which version of GMQCC you want. For
+instance, if you want gmqcc 0.3.0, you move gmqcc-0.3.0.ebuild into that
+directory.
+
+# mv gmqcc-{version}.ebuild [[PORTDIR_OVERLAY]]/gmqcc/
+
+After the file is moved into your newly created portage overlay tree, you'll
+need to build a digest for it with ebuild. A digest is simply a Manifest and
+digital signature for the source files used.
+
+# ebuild gmqcc-0.3.0.ebuild digest
+
+After the digest is built, you can emerge gmqcc as usual.
+
+# emerge gmqcc
diff --git a/distro/gentoo/gmqcc-0.3.0.ebuild b/distro/gentoo/gmqcc-0.3.0.ebuild
new file mode 100644 (file)
index 0000000..28630d3
--- /dev/null
@@ -0,0 +1,20 @@
+EAPI=5
+
+DESCRIPTION="An Improved Quake C Compiler"
+HOMEPAGE="http://graphitemaster.github.com/gmqcc/"
+SRC_URI="https://github.com/graphitemaster/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+       sed -i -e "s:-Werror ::" Makefile || die
+}
+
+src_install() {
+       emake install PREFIX="${D}/usr"
+       dodoc README
+}