From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-games/hawknl/Manifest | 1 + dev-games/hawknl/files/hawknl-1.68-build.patch | 32 +++++++++++++++++++++ dev-games/hawknl/hawknl-1.68-r2.ebuild | 40 ++++++++++++++++++++++++++ dev-games/hawknl/metadata.xml | 20 +++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 dev-games/hawknl/Manifest create mode 100644 dev-games/hawknl/files/hawknl-1.68-build.patch create mode 100644 dev-games/hawknl/hawknl-1.68-r2.ebuild create mode 100644 dev-games/hawknl/metadata.xml (limited to 'dev-games/hawknl') diff --git a/dev-games/hawknl/Manifest b/dev-games/hawknl/Manifest new file mode 100644 index 000000000000..744e1c684cd8 --- /dev/null +++ b/dev-games/hawknl/Manifest @@ -0,0 +1 @@ +DIST HawkNL168src.tar.gz 181263 SHA256 31a2883dbfe02937c9c862bb1aac0b89e465bbab822513c06bffa3f13e4c3c2e SHA512 52d518a19aaa8005e2e43a693571244a81a5a4450e2f92e6c0a64efb4b32ebfc3aff5d5b3ed09a3cdbee2e444d83067471ac714d7ae03d8cd78f905364c510f0 WHIRLPOOL c47fac6b08d06be3bc94f341471a6a57767d5de4d25598bac6e715552730463f059e07bce8d56289e0569511c2a9da33ee73e3d0c53d00e174f972da8736d3f1 diff --git a/dev-games/hawknl/files/hawknl-1.68-build.patch b/dev-games/hawknl/files/hawknl-1.68-build.patch new file mode 100644 index 000000000000..d94daaaf6d88 --- /dev/null +++ b/dev-games/hawknl/files/hawknl-1.68-build.patch @@ -0,0 +1,32 @@ +--- src/makefile.linux.orig 2005-12-16 22:03:24.000000000 -0500 ++++ src/makefile.linux 2005-12-16 22:04:18.000000000 -0500 +@@ -34,13 +34,14 @@ + nltime.o : nlinternal.h nltime.c + + install: ++ mkdir -p $(LIBDIR) $(INCDIR) ; chmod 755 $(LIBDIR) $(INCDIR) + cp $(OUTPUT) $(LIBDIR) + cp $(STATIC) $(LIBDIR) + chmod 755 $(LIBDIR)/$(OUTPUT) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/$(LIBNAME).so ++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION) ++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION) ++ ln -s $(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so ++ ln -s $(OUTPUT) $(LIBDIR)/$(LIBNAME).so + cp ../include/nl.h $(INCDIR)/nl.h + chmod 644 $(INCDIR)/nl.h + +--- src/makefile.linux.old 2010-09-10 09:44:53.000000000 +0200 ++++ src/makefile.linux 2010-09-10 09:45:09.000000000 +0200 +@@ -13,7 +13,7 @@ + STATIC = libNL.a + OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT + CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS) +-LIBFLAGS = -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread ++LIBFLAGS = ${LDFLAGS} -shared -Wl,-soname,libNL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread + OBJECTS = crc.o errorstr.o nl.o sock.o group.o loopback.o err.o thread.o mutex.o condition.o nltime.o + + all: $(OBJECTS) diff --git a/dev-games/hawknl/hawknl-1.68-r2.ebuild b/dev-games/hawknl/hawknl-1.68-r2.ebuild new file mode 100644 index 000000000000..59d79d329a71 --- /dev/null +++ b/dev-games/hawknl/hawknl-1.68-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils multilib + +DESCRIPTION="A cross-platform network library designed for games" +HOMEPAGE="http://www.hawksoft.com/hawknl/" +SRC_URI="http://www.sonic.net/~philf/download/HawkNL${PV/./}src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa ppc x86" +IUSE="doc" + +RDEPEND="" +DEPEND="" + +S=${WORKDIR}/hawknl${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + sed -i\ -e '/echo /d' src/makefile.linux || die +} + +src_compile() { + emake -C src -f makefile.linux \ + CC="$(tc-getCC)" \ + OPTFLAGS="${CFLAGS} -D_GNU_SOURCE -D_REENTRANT" +} + +src_install() { + emake -j1 -C src -f makefile.linux \ + LIBDIR="${D}/usr/$(get_libdir)" \ + INCDIR="${D}/usr/include" install + if use doc ; then + dodoc -r samples + fi +} diff --git a/dev-games/hawknl/metadata.xml b/dev-games/hawknl/metadata.xml new file mode 100644 index 000000000000..4042a5659691 --- /dev/null +++ b/dev-games/hawknl/metadata.xml @@ -0,0 +1,20 @@ + + + +games + +HawkNL is a free, open source, game oriented network API released under +the GNU Library General Public License (LGPL). HawkNL (NL) is a fairly +low level API, a wrapper over Berkeley/Unix Sockets and Winsock. But NL +also provides other features including support for many OSs, groups of +sockets, socket statistics, high accuracy timer, CRC functions, macros +to read and write data to packets with endian conversion, and support +for multiple network transports. NL has been tested on Windows +9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX, BSDs, MacOS 7-9 and +MacOS X. There are also the two high level APIs, HawkNLU(tm) (NLU) +and HawkVoice(tm), which are built on top of NL. It is NLU and +HawkVoice(tm) that are most exciting, since they give developers +portable, easy to use alternatives to Microsoft®'s DirectPlay® and +DirectPlay® Voice. + + -- cgit v1.2.3-65-gdbad