mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Gentoo ebuilds
This commit is contained in:
parent
e29b4d35b3
commit
af80d9956b
2 changed files with 55 additions and 0 deletions
35
distro/gentoo/INSTALL
Normal file
35
distro/gentoo/INSTALL
Normal file
|
@ -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
|
20
distro/gentoo/gmqcc-0.3.0.ebuild
Normal file
20
distro/gentoo/gmqcc-0.3.0.ebuild
Normal file
|
@ -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
|
||||||
|
}
|
Loading…
Reference in a new issue