Skip to content

Commit

Permalink
move amxmodx from old svn repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bor committed May 23, 2010
1 parent 7b0b7fc commit 6dcadea
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
10 changes: 10 additions & 0 deletions games-server/halflife-amxmodx/ChangeLog
@@ -0,0 +1,10 @@
# ChangeLog for games-server/halflife-amxmodx
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $

*halflife-amxmodx-1.8.1 (23 May 2010)

23 May 2010; Sergiy Borodych <bor@univ.kiev.ua>
+halflife-amxmodx-1.8.1.ebuild, +metadata.xml:
move from old svn repo

11 changes: 11 additions & 0 deletions games-server/halflife-amxmodx/Manifest
@@ -0,0 +1,11 @@
DIST amxmodx-1.8.1-base.tar.gz 3273367 RMD160 4f72409a6b6524e645317d4400d2e43f145c99de SHA1 3e6826e4338f21702a74257fa7463a620c315f98 SHA256 90988646a722a11deb73eeeb4c7ff0b955492df36a5884532f683df9338eb128
DIST amxmodx-1.8.1-cstrike.tar.gz 165549 RMD160 7e25234d5492bd49fbb4ee80e08ce1447f8c421f SHA1 5555c7c08d2c030f47bef40d514123f6f14cb2fd SHA256 290adf12a2c36f1d9f25d9f72a51415cd76fd1cf6933a3c07925489e710fbbec
DIST amxmodx-1.8.1-dod.tar.gz 127561 RMD160 ff316d015ee569347dfe5b4fb15fe1208d356d28 SHA1 8c3fa470459d78b1cdfb306c1c24ffc18fcbd2b0 SHA256 71d94b7e3aa9964cac15e5d369f4c01808858d9f64536f3750b19768bcf7b486
DIST amxmodx-1.8.1-esf.tar.gz 14837 RMD160 a9f808420b3b9a4a27a9eab964f10970f9f3d04d SHA1 404f7ba6790e8871705c63097904eb51b3031b21 SHA256 36a4b363a9bd61f0ed1ec73bd251e54c5d2fa4dbeefd068e27e88844570bd26f
DIST amxmodx-1.8.1-ns.tar.gz 145758 RMD160 cf90409f3cef99462a57c114d93414efd8967d13 SHA1 8530e09a99005a5abd553839997b747e02c65b33 SHA256 6b16ce8f3201ac0a2346b6e742478166a9ba503a9d1c5aec1362a26561c1600c
DIST amxmodx-1.8.1-tfc.tar.gz 97436 RMD160 3d5ad34a6d68f8017015cdfd5077244841885eb7 SHA1 c46575a8b3ee24379bc972c901e26753321fa36c SHA256 7149bfe2393272867823c7e73bdd7fd89617b0b558d18dd46430b57d8ac9cdfa
DIST amxmodx-1.8.1-ts.tar.gz 64079 RMD160 37f140ced23356863a565e0f742157e874806941 SHA1 468d0cbd6eb17a95fedd0596d5765f19a9d6d080 SHA256 63a784701d575c4c3fa1cd1477a84a91203524aad2a45b21947f6ef36ab0be66
DIST amxmodx-source-1.8.1.tar.gz 9080699 RMD160 e02b3e684d76b2fc37739223f6f459da80ca2dac SHA1 131c5265858a1ed55af5a4cd9ef8a447910b36cb SHA256 de755c1d28fe129def4930f486b977afa315979694ab75ec5f0e8a44aadd158f
EBUILD halflife-amxmodx-1.8.1.ebuild 3030 RMD160 31ec8213573febf2affd31ef316d4b56bc7c6f2c SHA1 95932e53e860698e6e5b221367d510534283035b SHA256 0c312c68a5641fea54b4c05f3b480a7c8f1eaad099c65cbeabfe78487e387071
MISC ChangeLog 294 RMD160 7b0eda68dca85388f08d905a718618f97bd940b1 SHA1 0f12c0383bafeb5b7061fd2edc302e0ee9f78a43 SHA256 896362f9241108654c0147256693f5050c3e195bcb3767c17521282af6fff145
MISC metadata.xml 1318 RMD160 5019d96a1eb66456aa3f56031568951e28f68623 SHA1 46711480fe9da1e1825a97d5f151d8d127dbebc8 SHA256 d4e800667b60879d01cfdab1cef0ee904f2a2b4781d15ddedb0af9bb4a2c83d7
103 changes: 103 additions & 0 deletions games-server/halflife-amxmodx/halflife-amxmodx-1.8.1.ebuild
@@ -0,0 +1,103 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

inherit toolchain-funcs games

DESCRIPTION="AMX Mod X is a versatile Half-Life metamod plugin which is targetted toward server administration."
HOMEPAGE="http://amxmodx.org/"
SRC_URI="!src? ( mirror://sourceforge/amxmodx/amxmodx-${PV}-base.tar.gz )
src? ( mirror://sourceforge/amxmodx/amxmodx-source-${PV}.tar.gz )"

LICENSE="GPL-1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc hl-cstrike hl-dod hl-esf hl-ns hl-tfc hl-ts src"

DEPEND="|| ( >=games-server/halflife-metamod-1.19 >=games-server/halflife-metamod-p-1.19_p28 )
src? ( >=dev-games/hlsdk-2.3_p2 )"
RDEPEND="|| ( games-server/halflife-server games-server/halflife-steam )"

MODS="cstrike dod esf ns tfc ts"

if use src ; then
S=${WORKDIR}/amxmodx-${PV}
else
for MOD in $MODS; do
SRC_URI="${SRC_URI} hl-${MOD}? ( mirror://sourceforge/amxmodx/amxmodx-${PV}-${MOD}.tar.gz )"
done
S=${WORKDIR}/addons/amxmodx
fi
INSTALL_DIR=${GAMES_PREFIX_OPT}/halflife/addons/amxmodx

pkg_setup() {
local use_mods=''
local n_mods=0
for MOD in $MODS; do
if use hl-${MOD}; then
let n_mods++
use_mods="${use_mods} hl-${MOD}"
fi
done
if [[ ${n_mods} -gt 1 ]]; then
die "Please use only one hl-MOD USE directive !!! Now ${use_mods_n} mods: ${use_mods}"
fi
}

src_compile() {
# move cfg's to .example
for cfg_file in `ls configs/*.ini configs/*.cfg` ; do mv $cfg_file $cfg_file.example ; done
if use src ; then
cd "${S}"/amxmodx
ewarn "Compile from source too buggy - not work now!" && die
emake \
CPP="$(tc-getCC)" \
HLSDK="$(games_get_libdir)"/hlsdk/multiplayer \
MM_ROOT="$(games_get_libdir)"/metamod \
|| die
fi
}

src_install() {
if use src ; then
cd "${S}"/amxmodx
emake install || die
fi
if use doc; then dodoc doc/*; fi
rm -rf doc
dodir "${INSTALL_DIR}"
insinto "${INSTALL_DIR}"
doins -r *
exeinto "${INSTALL_DIR}"/scripting
doexe scripting/amxxpc scripting/compile.sh
keepdir "${INSTALL_DIR}"/logs "${INSTALL_DIR}"/scripting/compiled
prepgamesdirs
}

pkg_postinst() {
einfo ""
einfo "Don't forget run"
einfo " emerge --config games-server/halflife-amxmodx"
einfo "for coping new config files if need"
einfo ""
einfo "You can use 'addons/amxmodx/scripting' directory "
einfo " for place and compile here your custom plugins."
einfo "And for this you can use compile.sh script. "
einfo ""
einfo "! See changelog for changes you need make !"
einfo "http://wiki.alliedmods.net/AMX_Mod_X_${PV}_Changes"
einfo ""
}

pkg_config() {
# install default cfg's unless exists custom
for example_cfg_file in `ls ${INSTALL_DIR}/configs/*.ini.example ${INSTALL_DIR}/configs/*.cfg.example`; do
cfg_file=`echo $example_cfg_file | sed s:\.example$:: | sed s:^.*/::`
if [ ! -e "${INSTALL_DIR}/configs/$cfg_file" ] ; then
einfo "Coping $cfg_file.example to $cfg_file";
cp "${INSTALL_DIR}/configs/$cfg_file.example" "${INSTALL_DIR}/configs/$cfg_file";
fi
done
}

# vim: set ts=4 noexpandtab :
28 changes: 28 additions & 0 deletions games-server/halflife-amxmodx/metadata.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd></herd>
<maintainer>
<email>bor@univ.kiev.ua</email>
<name>Sergiy Borodych</name>
</maintainer>
<longdescription lang="en">
AMX Mod X is a versatile Half-Life metamod plugin which is targetted toward server administration.
It has a wide array of scripting capabilities so people can write
"plugins", or files which add on to a mod's functionality.
Plugins can take form in administrative services (adding new admin
commands), statistics generation (StatsX), fun additions (godmode, etc),
gameplay changes (WC3, CSDM), and much, much more!
You can also write modules to expand the functionality of AMX Mod X and
add to the scripting language.
</longdescription>
<use>
<flag name="hl-cstrike">Installs Counter-Strike Addon content</flag>
<flag name="hl-dod">Installs Day of Defeat Addon content</flag>
<flag name="hl-esf">Installs Earth's Special Forces Addon content</flag>
<flag name="hl-ns">Installs Natural Selection Addon content</flag>
<flag name="hl-tfc">Installs Team Fortress Classic Addon content</flag>
<flag name="hl-ts">Installs The Specialists Addon content</flag>
<flag name="src">Try compile from source</flag>
</use>
</pkgmetadata>

0 comments on commit 6dcadea

Please sign in to comment.