forked from hasufell/hasufell-repository
Fix licenses, indenting and improve patch descriptions
This commit is contained in:
@@ -7,7 +7,7 @@ SUMMARY="Front end to cryptsetup"
|
||||
HOMEPAGE="http://mhogomchungu.github.io/zuluCrypt/"
|
||||
DOWNLOADS="https://github.com/mhogomchungu/zuluCrypt/releases/download/${PV}/zuluCrypt-${PV}.tar.bz2"
|
||||
|
||||
LICENCES="GPL-2+"
|
||||
LICENCES="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
|
||||
@@ -5,14 +5,14 @@ require cmake [ api=2 ]
|
||||
|
||||
SUMMARY="High performance 3D graphics toolkit"
|
||||
DESCRIPTION="
|
||||
The OpenSceneGraph is an open source high performance 3D graphics toolkit,
|
||||
used by application developers in fields such as visual simulation, games,
|
||||
virtual reality, scientific visualization and modelling. Written entirely
|
||||
in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux,
|
||||
IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph
|
||||
is now well established as the world leading scene graph technology, used
|
||||
widely in the vis-sim, space, scientific, oil-gas, games and virtual reality
|
||||
industries.
|
||||
The OpenSceneGraph is an open source high performance 3D graphics toolkit,
|
||||
used by application developers in fields such as visual simulation, games,
|
||||
virtual reality, scientific visualization and modelling. Written entirely
|
||||
in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux,
|
||||
IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph
|
||||
is now well established as the world leading scene graph technology, used
|
||||
widely in the vis-sim, space, scientific, oil-gas, games and virtual reality
|
||||
industries.
|
||||
"
|
||||
|
||||
MY_PN="OpenSceneGraph"
|
||||
@@ -20,7 +20,7 @@ MY_P=${MY_PN}-${PV}
|
||||
HOMEPAGE="http://${PN}.org"
|
||||
DOWNLOADS="http://trac.openscenegraph.org/downloads/developer_releases/${MY_P}.zip"
|
||||
|
||||
LICENCES="OpenSceneGraph"
|
||||
LICENCES="wxWinLL-3 LGPL-2.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
@@ -33,26 +33,26 @@ DEPENDENCIES="
|
||||
build:
|
||||
app-arch/zip
|
||||
build+run:
|
||||
media-libs/freetype:2
|
||||
media-libs/jasper
|
||||
media-libs/openexr
|
||||
sys-libs/zlib
|
||||
net-misc/curl
|
||||
media/ffmpeg
|
||||
media-libs/gstreamer:1.0
|
||||
media-plugins/gst-plugins-base:1.0
|
||||
app-text/poppler[cairo]
|
||||
dev-libs/glib:2
|
||||
media/ffmpeg
|
||||
media-libs/freetype:2
|
||||
media-libs/giflib:=
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/jasper
|
||||
media-libs/libpng:=
|
||||
media-libs/openexr
|
||||
media-libs/SDL:0
|
||||
x11-libs/gtkglext
|
||||
x11-libs/wxGTK:3.0
|
||||
media-libs/tiff
|
||||
media-plugins/gst-plugins-base:1.0
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
x11-dri/mesa
|
||||
x11-libs/gtkglext
|
||||
x11-libs/qtbase:5
|
||||
x11-libs/wxGTK:3.0
|
||||
providers:ijg-jpeg? ( media-libs/jpeg )
|
||||
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
||||
media-libs/giflib:=
|
||||
media-libs/libpng:=
|
||||
media-libs/tiff
|
||||
x11-libs/qtbase:5
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Make almost all features properly optional
|
||||
|
||||
--- OpenSceneGraph-3.4.0/CMakeLists.txt
|
||||
+++ OpenSceneGraph-3.4.0/CMakeLists.txt
|
||||
@@ -607,6 +607,7 @@
|
||||
|
||||
@@ -31,8 +31,8 @@ MYOPTIONS="
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-libs/pcre[>=5.0]
|
||||
sys-libs/zlib
|
||||
media-libs/freetype:2[>=0.15.0]
|
||||
sys-libs/zlib
|
||||
devil? ( media-libs/DevIL )
|
||||
expat? ( dev-libs/expat )
|
||||
freeimage? ( media-libs/FreeImage )
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Fix installation destination
|
||||
|
||||
diff -ru mygui-MyGUI3.2.2.orig/CMake/ConfigureBuild.cmake mygui-MyGUI3.2.2/CMake/ConfigureBuild.cmake
|
||||
--- mygui-MyGUI3.2.2.orig/CMake/ConfigureBuild.cmake 2015-01-26 10:32:35.000000000 -0500
|
||||
+++ mygui-MyGUI3.2.2/CMake/ConfigureBuild.cmake 2015-03-14 01:09:40.743621643 -0400
|
||||
@@ -19,43 +21,3 @@ diff -ru mygui-MyGUI3.2.2.orig/CMake/ConfigureBuild.cmake mygui-MyGUI3.2.2/CMake
|
||||
|
||||
# configure additional packages
|
||||
|
||||
diff -ru mygui-MyGUI3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake mygui-MyGUI3.2.2/CMake/Utils/MyGUIConfigTargets.cmake
|
||||
--- mygui-MyGUI3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake 2015-01-26 10:32:35.000000000 -0500
|
||||
+++ mygui-MyGUI3.2.2/CMake/Utils/MyGUIConfigTargets.cmake 2015-03-14 01:08:44.905791784 -0400
|
||||
@@ -1,6 +1,8 @@
|
||||
# Configure settings and install targets
|
||||
# FIXME: Copypasted from Ogre and need lots of changes
|
||||
|
||||
+include(GNUInstallDirs)
|
||||
+
|
||||
if (WIN32)
|
||||
set(MYGUI_RELEASE_PATH "/Release")
|
||||
set(MYGUI_RELWDBG_PATH "/RelWithDebInfo")
|
||||
@@ -60,6 +62,12 @@
|
||||
# install targets according to current build type
|
||||
function(mygui_install_target TARGETNAME SUFFIX)
|
||||
install(TARGETS ${TARGETNAME}
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" CONFIGURATIONS Gentoo ""
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" CONFIGURATIONS Gentoo ""
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" CONFIGURATIONS Gentoo ""
|
||||
+ FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Gentoo ""
|
||||
+ )
|
||||
+ install(TARGETS ${TARGETNAME}
|
||||
RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
|
||||
LIBRARY DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
ARCHIVE DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
@@ -171,7 +179,13 @@
|
||||
endif ()
|
||||
add_executable(${PROJECTNAME} ${MYGUI_EXEC_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
|
||||
endif ()
|
||||
- set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER})
|
||||
+
|
||||
+ # rename demo target^M
|
||||
+ if (${SOLUTIONFOLDER} STREQUAL "Demos")
|
||||
+ set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER} OUTPUT_NAME MYGUI-${PROJECTNAME})
|
||||
+ else()
|
||||
+ set_target_properties(${PROJECTNAME} PROPERTIES FOLDER ${SOLUTIONFOLDER})
|
||||
+ endif()
|
||||
|
||||
add_dependencies(${PROJECTNAME} MyGUIEngine Common)
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ DEPENDENCIES="
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
-p0 "${FILES}"/${PNV}-underlinking.patch
|
||||
-p1 "${FILES}"/${PNV}-build.patch
|
||||
-p1 "${FILES}"/${PNV}-FHS.patch
|
||||
-p1 "${FILES}"/${PNV}-build.patch
|
||||
-p1 "${FILES}"/${PNV}-FHS.patch
|
||||
)
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
@@ -55,10 +55,10 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
keepdir /etc/MYGUI
|
||||
keepdir /etc/MYGUI
|
||||
|
||||
# test media not needed at runtime
|
||||
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/UnitTests
|
||||
# wrapper not available for linux, remove related media
|
||||
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/Wrapper
|
||||
# test media not needed at runtime
|
||||
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/UnitTests
|
||||
# wrapper not available for linux, remove related media
|
||||
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/Wrapper
|
||||
}
|
||||
|
||||
@@ -40,22 +40,22 @@ CMAKE_SRC_CONFIGURE_TESTS=(
|
||||
)
|
||||
|
||||
enable_mbedtls_option() {
|
||||
local myopt="$@"
|
||||
# check that config.h syntax is the same at version bump
|
||||
sed -i \
|
||||
-e "s://#define ${myopt}:#define ${myopt}:" \
|
||||
include/mbedtls/config.h || die
|
||||
local myopt="$@"
|
||||
# check that config.h syntax is the same at version bump
|
||||
sed -i \
|
||||
-e "s://#define ${myopt}:#define ${myopt}:" \
|
||||
include/mbedtls/config.h || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
|
||||
option havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD
|
||||
enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
|
||||
option havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ECMAKE_BUILD_DIR}/library" \
|
||||
cmake_src_test
|
||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ECMAKE_BUILD_DIR}/library" \
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ HOMEPAGE="http://minetest.net/"
|
||||
DOWNLOADS="http://github.com/minetest/minetest/tarball/${PV} -> ${PNV}.tar.gz
|
||||
http://github.com/minetest/minetest_game/tarball/${PV} -> minetest_game-${PV}.tar.gz"
|
||||
|
||||
LICENCES="LGPL-2.1+ CC-BY-SA-3.0"
|
||||
LICENCES="|| ( LGPL-2.1 LGPL-3 ) CCPL-Attribution-ShareAlike-3.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
@@ -74,7 +74,7 @@ src_install() {
|
||||
cmake_src_install
|
||||
|
||||
edo cd "${WORKBASE}"/minetest_game-${PV}
|
||||
insinto /usr/share/minetest/games/${PN}
|
||||
doins -r mods menu
|
||||
doins game.conf minetest.conf
|
||||
insinto /usr/share/minetest/games/${PN}
|
||||
doins -r mods menu
|
||||
doins game.conf minetest.conf
|
||||
}
|
||||
|
||||
@@ -24,15 +24,15 @@ DEFAULT_SRC_CONFIGURE_PARAMS=( --enable-tk )
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
edo mv src/xawale.tcl src/xawale.tcl.in
|
||||
edo mv configure.in configure.ac
|
||||
edo mv src/xawale.tcl src/xawale.tcl.in
|
||||
edo mv configure.in configure.ac
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
edo chmod +x "${IMAGE}"/usr/share/${PN}/xawale.tcl
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
edo chmod +x "${IMAGE}"/usr/share/${PN}/xawale.tcl
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ SUMMARY="A clone of the popular board game The Settlers of Catan"
|
||||
HOMEPAGE="http://pio.sourceforge.net/"
|
||||
DOWNLOADS="mirror://sourceforge/pio/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-2 CC-BY-SA-4.0"
|
||||
LICENCES="GPL-2 CCPL-Attribution-ShareAlike-4.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ SUMMARY="A clone of the popular board game The Settlers of Catan"
|
||||
HOMEPAGE="http://pio.sourceforge.net/"
|
||||
DOWNLOADS="mirror://sourceforge/pio/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-2 CC-BY-SA-4.0"
|
||||
LICENCES="GPL-2 CCPL-Attribution-ShareAlike-4.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ SUMMARY="Free/Libre Action Roleplaying game engine"
|
||||
HOMEPAGE="https://github.com/clintbellanger/flare-engine"
|
||||
DOWNLOADS="https://github.com/clintbellanger/flare-engine/archive/v${PV}.tar.gz -> ${PNV}-engine.tar.gz"
|
||||
|
||||
LICENCES="CC-BY-SA-3.0 GPL-3 OFL-1.1"
|
||||
LICENCES="CCPL-Attribution-ShareAlike-3.0 GPL-3 OFL-1.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ SUMMARY="An open source reimplementation of TES III: Morrowind"
|
||||
HOMEPAGE="http://openmw.org/"
|
||||
DOWNLOADS="https://github.com/OpenMW/openmw/archive/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-3 MIT BitstreamVera OFL-1.1"
|
||||
LICENCES="GPL-3 MIT bitstream-font OFL-1.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
doman solarus.6
|
||||
cmake_src_install
|
||||
doman solarus.6
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ ENGINE_P=${PN}_${ENGINE_PV}_sdk
|
||||
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
|
||||
HOMEPAGE="http://www.warsow.net/"
|
||||
DOWNLOADS="http://mirror.null.one/${ENGINE_P}.tar.gz
|
||||
http://mirror.null.one/warsow_${DATA_PV}_unified.tar.gz
|
||||
mirror://gentoo/warsow.png"
|
||||
http://mirror.null.one/warsow_${DATA_PV}_unified.tar.gz
|
||||
mirror://gentoo/warsow.png"
|
||||
|
||||
LICENCES="
|
||||
GPL-2
|
||||
@@ -46,11 +46,11 @@ WORK=${WORKBASE}/source/source
|
||||
DATA_S=${WORKBASE}/${PN}_${DATA_PV:0:2}
|
||||
|
||||
src_install() {
|
||||
dobin_wrapper() {
|
||||
local f
|
||||
dobin_wrapper() {
|
||||
local f
|
||||
|
||||
for f in $@ ; do
|
||||
herebin ${f} <<EOF
|
||||
for f in $@ ; do
|
||||
herebin ${f} <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
basepath="/usr/share/${PN}"
|
||||
@@ -61,26 +61,26 @@ exec "/usr/libexec/${PN}/${f}" \
|
||||
+set fs_basepath \${basepath} \
|
||||
+set fs_usehomedir 1 "\$@"
|
||||
EOF
|
||||
done
|
||||
}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${DATA_S}"/basewsw
|
||||
done
|
||||
}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${DATA_S}"/basewsw
|
||||
|
||||
edo cd build
|
||||
edo cd build
|
||||
|
||||
exeinto /usr/$(exhost --target)/libexec/${PN}/
|
||||
doexe */*.so
|
||||
newexe ${PN}.* ${PN}
|
||||
newexe wsw_server.* ${PN}-ded
|
||||
newexe wswtv_server.* ${PN}-tv
|
||||
dobin_wrapper ${PN} ${PN}-ded ${PN}-tv
|
||||
doexe */*.so
|
||||
newexe ${PN}.* ${PN}
|
||||
newexe wsw_server.* ${PN}-ded
|
||||
newexe wswtv_server.* ${PN}-tv
|
||||
dobin_wrapper ${PN} ${PN}-ded ${PN}-tv
|
||||
|
||||
local so
|
||||
dodir /usr/share/${PN}/libs
|
||||
for so in basewsw/*.so libs/*.so ; do
|
||||
dosym /usr/$(exhost --target)/libexec/${PN}/${so##*/} \
|
||||
/usr/share/${PN}/${so}
|
||||
done
|
||||
local so
|
||||
dodir /usr/share/${PN}/libs
|
||||
for so in basewsw/*.so libs/*.so ; do
|
||||
dosym /usr/$(exhost --target)/libexec/${PN}/${so##*/} \
|
||||
/usr/share/${PN}/${so}
|
||||
done
|
||||
|
||||
insinto /usr/share/icons/hicolor/48x48/apps
|
||||
doins "${FETCHEDDIR}"/${PN}.png
|
||||
|
||||
@@ -28,10 +28,10 @@ DOWNLOADS="https://crawl.develz.org/release/${MY_P}-nodeps.tar.xz"
|
||||
|
||||
LICENCES="
|
||||
GPL-2
|
||||
BSD [[ note = [ mt19937ar.cc, MSVC/stdint.h ] ]]
|
||||
BSD-3 [[ note = [ mt19937ar.cc, MSVC/stdint.h ] ]]
|
||||
BSD-2 [[ note = [ all contributions by Steve Noonan and Jesse Luehrs ] ]]
|
||||
public-domain [[ note = [ most of tiles ] ]]
|
||||
CC0-1.0 [[ note = [ most of tiles ] ]]
|
||||
CC0 [[ note = [ most of tiles ] ]]
|
||||
MIT [[ note = [ json.cc/json.h, some .js files in
|
||||
webserver/static/scripts/contrib/ ] ]]
|
||||
"
|
||||
@@ -94,7 +94,7 @@ DEFAULT_SRC_COMPILE_PARAMS=(
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
export HOSTCXX=${CXX}
|
||||
export HOSTCXX=${CXX}
|
||||
|
||||
emake "${DEFAULT_SRC_COMPILE_PARAMS[@]}" $(option tiles "TILES=y" "")
|
||||
}
|
||||
@@ -107,7 +107,7 @@ src_install() {
|
||||
bin_prefix="${IMAGE}/usr/$(exhost --target)/bin" \
|
||||
install
|
||||
|
||||
# don't relocate docs, needed at runtime
|
||||
rm -rf "${IMAGE}/usr/share/${PN}/docs/license"
|
||||
# don't relocate docs, needed at runtime
|
||||
rm -rf "${IMAGE}/usr/share/${PN}/docs/license"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
From 88579f929f0fc777762de1ad0895264ad077e0ee Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Mon, 27 Oct 2014 20:48:03 +0100
|
||||
Subject: [PATCH 2/2] Use pkg-config for linking to ncurses
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
From aaa7cde91e4b086164f0c7f46569a34bfbb4e479 Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Sun, 3 May 2015 15:05:43 +0200
|
||||
Subject: [PATCH] Respect flags and compiler
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ LICENCES="
|
||||
GPL-3
|
||||
shockbolt-tileset
|
||||
Apache-2.0 [[ note = [ fonts license ] ]]
|
||||
BitstreamVera [[ note = [ fonts license ] ]]
|
||||
bitstream-font [[ note = [ fonts license ] ]]
|
||||
"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
@@ -35,51 +35,51 @@ DEPENDENCIES="
|
||||
WORK=${WORKBASE}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# fix broken sdl2 detection
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38714
|
||||
edo sed -i \
|
||||
-e "s~/usr/lib32~/usr/$(exhost --target)/lib~" \
|
||||
-e "s~/opt/SDL-2.0~/usr/$(exhost --target)~" \
|
||||
premake4.lua
|
||||
# fix broken sdl2 detection
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38714
|
||||
edo sed -i \
|
||||
-e "s~/usr/lib32~/usr/$(exhost --target)/lib~" \
|
||||
-e "s~/opt/SDL-2.0~/usr/$(exhost --target)~" \
|
||||
premake4.lua
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local premake_options="--lua=default"
|
||||
# Generate a "Makefile" with "premake4".
|
||||
edo premake4 ${premake_options} gmake
|
||||
local premake_options="--lua=default"
|
||||
# Generate a "Makefile" with "premake4".
|
||||
edo premake4 ${premake_options} gmake
|
||||
|
||||
# respect flags, remove misuse of $ARCH
|
||||
# files are generated, cannot patch
|
||||
edo sed -i \
|
||||
-e 's~\(CFLAGS\s*+= \).*~\1-MMD -MP $(DEFINES) $(INCLUDES)~' \
|
||||
-e 's~\(CXXFLAGS\s*+= \).*~\1-MMD -MP $(DEFINES) $(INCLUDES)~' \
|
||||
-e '/LDFLAGS/s~-s~~' \
|
||||
-e 's~$(ARCH) ~~' \
|
||||
build/*.make
|
||||
# respect flags, remove misuse of $ARCH
|
||||
# files are generated, cannot patch
|
||||
edo sed -i \
|
||||
-e 's~\(CFLAGS\s*+= \).*~\1-MMD -MP $(DEFINES) $(INCLUDES)~' \
|
||||
-e 's~\(CXXFLAGS\s*+= \).*~\1-MMD -MP $(DEFINES) $(INCLUDES)~' \
|
||||
-e '/LDFLAGS/s~-s~~' \
|
||||
-e 's~$(ARCH) ~~' \
|
||||
build/*.make
|
||||
|
||||
# respect LDFLAGS
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38715
|
||||
edo sed -i \
|
||||
-e 's~^[ \t]*LINKCMD[ \t]*=[ \t]*$(CC).*$~LINKCMD = $(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(LDFLAGS) $(LIBS)~' \
|
||||
build/*.make
|
||||
# respect LDFLAGS
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38715
|
||||
edo sed -i \
|
||||
-e 's~^[ \t]*LINKCMD[ \t]*=[ \t]*$(CC).*$~LINKCMD = $(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(LDFLAGS) $(LIBS)~' \
|
||||
build/*.make
|
||||
|
||||
# FHS
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38716
|
||||
edo sed -i \
|
||||
-e "/PHYSFS_mount/s~game~/usr/share/${PN}/game~" \
|
||||
src/main.c
|
||||
# FHS
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38716
|
||||
edo sed -i \
|
||||
-e "/PHYSFS_mount/s~game~/usr/share/${PN}/game~" \
|
||||
src/main.c
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# parallel make broken
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38713
|
||||
config='release' emake -j1 verbose=1
|
||||
# parallel make broken
|
||||
# http://forums.te4.org/viewtopic.php?f=42&t=38713
|
||||
config='release' emake -j1 verbose=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r game
|
||||
newbin t-engine ${PN}
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r game
|
||||
newbin t-engine ${PN}
|
||||
|
||||
insinto /usr/share/applications
|
||||
hereins ${PN}.desktop <<EOF
|
||||
|
||||
@@ -43,12 +43,12 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This package only installs the game binary."
|
||||
elog "You need the demo or full game data. Also see:"
|
||||
elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
|
||||
elog
|
||||
elog "If you have already installed the game or use the STEAM version,"
|
||||
elog "run \"/usr/$(exhost --target)/bin/arx-install-data\""
|
||||
elog "This package only installs the game binary."
|
||||
elog "You need the demo or full game data. Also see:"
|
||||
elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
|
||||
elog
|
||||
elog "If you have already installed the game or use the STEAM version,"
|
||||
elog "run \"/usr/$(exhost --target)/bin/arx-install-data\""
|
||||
|
||||
gtk-icon-cache_pkg_postinst
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ SUMMARY="Free/Libre Action Roleplaying game"
|
||||
HOMEPAGE="https://github.com/clintbellanger/flare-game"
|
||||
DOWNLOADS="https://github.com/clintbellanger/flare-game/archive/v${PV}.tar.gz -> ${PNV}-game.tar.gz"
|
||||
|
||||
LICENCES="CC-BY-SA-3.0 GPL-2 GPL-3 OFL-1.1"
|
||||
LICENCES="CCPL-Attribution-ShareAlike-3.0 GPL-2 GPL-3 OFL-1.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
@@ -24,7 +24,7 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
cmake_src_install
|
||||
|
||||
herebin ${PN}-game <<EOF
|
||||
#!/bin/sh
|
||||
@@ -43,6 +43,6 @@ Icon=flare
|
||||
Categories=Game;RolePlaying;
|
||||
EOF
|
||||
|
||||
dodoc README
|
||||
dodoc README
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 2014-2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
|
||||
@@ -9,7 +8,7 @@ SUMMARY="A multi-player, 3D action role-playing game"
|
||||
HOMEPAGE="http://sumwars.org"
|
||||
DOWNLOADS="mirror://sourceforge/sumwars/${PNV//_/-}-src.tar.bz2"
|
||||
|
||||
LICENCES="GPL-3 CC-BY-SA-3.0"
|
||||
LICENCES="GPL-3 CCPL-Attribution-ShareAlike-3.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
@@ -48,20 +47,20 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
cmake_src_configure
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
cmake_src_install
|
||||
|
||||
# cleanup empty directories
|
||||
edo rm -r "${IMAGE}"/usr/share/sumwars/translation/{potfiles,extract}
|
||||
|
||||
insinto /usr/share/icons/hicolor/128x128/apps
|
||||
newins share/icon/SumWarsIcon_128x128.png ${PN}.png
|
||||
newins share/icon/SumWarsIcon_128x128.png ${PN}.png
|
||||
|
||||
insinto /usr/share/applications
|
||||
hereins ${PN}.desktop <<EOF
|
||||
|
||||
@@ -15,7 +15,7 @@ MY_PNV=ValyriaTear-${PV}
|
||||
|
||||
SUMMARY="A free 2D J-RPG based on the Hero of Allacrost engine"
|
||||
HOMEPAGE="http://valyriatear.blogspot.de/
|
||||
https://github.com/Bertram25/ValyriaTear"
|
||||
https://github.com/Bertram25/ValyriaTear"
|
||||
DOWNLOADS=""
|
||||
|
||||
LICENCES="GPL-2 GPL-3 CCPL-Attribution-ShareAlike-3.0 CCPL-Attribution-3.0 CC0 OFL-1.1"
|
||||
|
||||
@@ -7,7 +7,7 @@ SUMMARY="A free 2D Zelda fangame"
|
||||
HOMEPAGE="http://www.solarus-games.org/"
|
||||
DOWNLOADS="http://www.zelda-solarus.com/downloads/${PN}/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="CC-BY-SA-3.0 GPL-3"
|
||||
LICENCES="CCPL-Attribution-ShareAlike-3.0 GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
@@ -24,15 +24,15 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
cmake_src_install
|
||||
|
||||
insinto /usr/share/icons/hicolor/256x256/apps
|
||||
newins build/icons/${PN}_icon_256.png ${PN}.png
|
||||
insinto /usr/share/icons/hicolor/48x48/apps
|
||||
newins build/icons/${PN}_icon_48.png ${PN}.png
|
||||
|
||||
# install proper wrapper script
|
||||
edo rm -f "${IMAGE%/}"/usr/share/${PN}
|
||||
# install proper wrapper script
|
||||
edo rm -f "${IMAGE%/}"/usr/share/${PN}
|
||||
herebin ${PN} <<EOF
|
||||
#!/bin/sh
|
||||
exec solarus_run "/usr/share/solarus/${PN}" "\$@"
|
||||
|
||||
@@ -24,15 +24,15 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
cmake_src_install
|
||||
|
||||
insinto /usr/share/icons/hicolor/256x256/apps
|
||||
newins build/icons/${PN}_icon_256.png ${PN}.png
|
||||
insinto /usr/share/icons/hicolor/48x48/apps
|
||||
newins build/icons/${PN}_icon_48.png ${PN}.png
|
||||
|
||||
# install proper wrapper script
|
||||
edo rm -f "${IMAGE%/}"/usr/share/${PN}
|
||||
# install proper wrapper script
|
||||
edo rm -f "${IMAGE%/}"/usr/share/${PN}
|
||||
herebin ${PN} <<EOF
|
||||
#!/bin/sh
|
||||
exec solarus_run "/usr/share/solarus/${PN}" "\$@"
|
||||
|
||||
@@ -13,7 +13,7 @@ DOWNLOADS="
|
||||
|
||||
LICENCES="
|
||||
Arev [[ note = [ Included DejaVu Fonts ] ]]
|
||||
Bitstream-Vera [[ note = [ Included DejaVu Fonts ] ]]
|
||||
bitstream-font [[ note = [ Included DejaVu Fonts ] ]]
|
||||
BSD-3 [[ note = [ build/premake/premake4 ] ]]
|
||||
CCPL-Attribution-ShareAlike-3.0 [[ note = [ binaries/data/mods/{art,audio} ] ]]
|
||||
GPL-2 [[ note = [
|
||||
@@ -75,7 +75,7 @@ DEPENDENCIES="
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
-p0 "${FILES}"/${PNV}-exherbo.patch
|
||||
-p0 "${FILES}"/${PNV}-flags.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
@@ -159,7 +159,7 @@ src_configure() {
|
||||
|
||||
|
||||
###### spidermonkey #####
|
||||
# build bundled and patched spidermonkey-31
|
||||
# build bundled and patched spidermonkey-31
|
||||
#
|
||||
# spidermonkey build system requires that SHELL is always set.
|
||||
# It's missing sometimes in chroot environments, so force it here.
|
||||
|
||||
@@ -3,7 +3,6 @@ Date: Sun Jun 24 18:32:38 UTC 2012
|
||||
Subject: build system
|
||||
|
||||
* respect flags
|
||||
* disable debug build of spidermonkey
|
||||
|
||||
--- libraries/source/fcollada/src/Makefile
|
||||
+++ libraries/source/fcollada/src/Makefile
|
||||
@@ -64,38 +63,3 @@ Subject: build system
|
||||
--include $(GCH:%.h.gch=%.h.d)
|
||||
\ No newline at end of file
|
||||
+-include $(GCH:%.h.gch=%.h.d)
|
||||
--- libraries/source/spidermonkey/build.sh
|
||||
+++ libraries/source/spidermonkey/build.sh
|
||||
@@ -92,19 +92,7 @@
|
||||
cd mozjs31/js/src
|
||||
|
||||
# Clean up data generated by previous builds that could cause problems
|
||||
-rm -rf build-debug
|
||||
rm -rf build-release
|
||||
-
|
||||
-# We want separate debug/release versions of the library, so we have to change
|
||||
-# the LIBRARY_NAME for each build.
|
||||
-# (We use perl instead of sed so that it works with MozillaBuild on Windows,
|
||||
-# which has an ancient sed.)
|
||||
-perl -i.bak -pe 's/(LIBRARY_NAME\s+=).*/$1 '\''mozjs31-ps-debug'\''/' moz.build
|
||||
-mkdir -p build-debug
|
||||
-cd build-debug
|
||||
-CXXFLAGS="${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-debug --disable-optimize --enable-js-diagnostics --enable-gczeal # --enable-root-analysis
|
||||
-${MAKE} ${MAKE_OPTS}
|
||||
-cd ..
|
||||
|
||||
perl -i.bak -pe 's/(LIBRARY_NAME\s+=).*/$1 '\''mozjs31-ps-release'\''/' moz.build
|
||||
mkdir -p build-release
|
||||
@@ -147,12 +135,9 @@
|
||||
mkdir -p ${INCLUDE_DIR_DEBUG}
|
||||
mkdir -p ${INCLUDE_DIR_RELEASE}
|
||||
cp -R -L mozjs31/js/src/build-release/dist/include/* ${INCLUDE_DIR_RELEASE}/
|
||||
-cp -R -L mozjs31/js/src/build-debug/dist/include/* ${INCLUDE_DIR_DEBUG}/
|
||||
|
||||
mkdir -p lib/
|
||||
-cp -L mozjs31/js/src/build-debug/dist/lib/${LIB_PREFIX}mozjs31-ps-debug${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs31-ps-debug${LIB_DST_SUFFIX}
|
||||
cp -L mozjs31/js/src/build-release/dist/lib/${LIB_PREFIX}mozjs31-ps-release${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs31-ps-release${LIB_DST_SUFFIX}
|
||||
-cp -L mozjs31/js/src/build-debug/dist/bin/${LIB_PREFIX}mozjs31-ps-debug${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs31-ps-debug${DLL_DST_SUFFIX}
|
||||
cp -L mozjs31/js/src/build-release/dist/bin/${LIB_PREFIX}mozjs31-ps-release${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs31-ps-release${DLL_DST_SUFFIX}
|
||||
|
||||
# Flag that it's already been built successfully so we can skip it next time
|
||||
@@ -16,7 +16,7 @@ PLATFORMS="~amd64 ~x86"
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
media-libs/SDL:0[X]
|
||||
media-libs/SDL_mixer:0[midi]
|
||||
media-libs/SDL_mixer:0[midi]
|
||||
build:
|
||||
virtual/pkg-config
|
||||
"
|
||||
@@ -26,7 +26,7 @@ DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
default
|
||||
default
|
||||
|
||||
insinto /usr/share/icons/hicolor/scalable/apps
|
||||
doins ${PN}.svg
|
||||
@@ -49,27 +49,27 @@ EOF
|
||||
pkg_postinst() {
|
||||
gtk-icon-cache_pkg_postinst
|
||||
|
||||
elog "You will need to copy all Dune 2 PAK files to one of these"
|
||||
elog "directories:"
|
||||
elog " /usr/share/${PN}"
|
||||
elog " ~/.config/${PN}/data"
|
||||
elog
|
||||
elog "At least the following files are needed:"
|
||||
elog " - ATRE.PAK"
|
||||
elog " - DUNE.PAK"
|
||||
elog " - ENGLISH.PAK"
|
||||
elog " - FINALE.PAK"
|
||||
elog " - HARK.PAK"
|
||||
elog " - INTRO.PAK"
|
||||
elog " - INTROVOC.PAK"
|
||||
elog " - MENTAT.PAK"
|
||||
elog " - MERC.PAK"
|
||||
elog " - ORDOS.PAK"
|
||||
elog " - SCENARIO.PAK"
|
||||
elog " - SOUND.PAK"
|
||||
elog " - VOC.PAK"
|
||||
elog
|
||||
elog "For playing in german or french you need additionally"
|
||||
elog "GERMAN.PAK or FRENCH.PAK."
|
||||
elog "You will need to copy all Dune 2 PAK files to one of these"
|
||||
elog "directories:"
|
||||
elog " /usr/share/${PN}"
|
||||
elog " ~/.config/${PN}/data"
|
||||
elog
|
||||
elog "At least the following files are needed:"
|
||||
elog " - ATRE.PAK"
|
||||
elog " - DUNE.PAK"
|
||||
elog " - ENGLISH.PAK"
|
||||
elog " - FINALE.PAK"
|
||||
elog " - HARK.PAK"
|
||||
elog " - INTRO.PAK"
|
||||
elog " - INTROVOC.PAK"
|
||||
elog " - MENTAT.PAK"
|
||||
elog " - MERC.PAK"
|
||||
elog " - ORDOS.PAK"
|
||||
elog " - SCENARIO.PAK"
|
||||
elog " - SOUND.PAK"
|
||||
elog " - VOC.PAK"
|
||||
elog
|
||||
elog "For playing in german or french you need additionally"
|
||||
elog "GERMAN.PAK or FRENCH.PAK."
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Author: hasufell <hasufell@gentoo.org>
|
||||
Author: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Thu Aug 9 18:57:40 2012 +0200
|
||||
|
||||
respect flags
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Fix install permissions
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 27ef953..cc1e2cd 100644
|
||||
--- a/Makefile
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
SUMMARY="A port of Jagged Alliance 2 to SDL"
|
||||
HOMEPAGE="https://bitbucket.org/gennady/ja2-stracciatella http://tron.homeunix.org/ja2/"
|
||||
DOWNLOADS="https://bitbucket.org/gennady/ja2-stracciatella/get/v${PV}.tar.gz -> ${PNV}.tar.gz
|
||||
mirror://gentoo/editor.slf.gz"
|
||||
mirror://gentoo/editor.slf.gz"
|
||||
|
||||
LICENCES="SFI-SCLA"
|
||||
SLOT="0"
|
||||
@@ -24,19 +24,19 @@ src_unpack() {
|
||||
|
||||
src_configure() {
|
||||
# not an autoconf script
|
||||
./configure --prefix=/usr
|
||||
./configure --prefix=/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
BINARY_DIR="${IMAGE}/usr/$(exhost --target)/bin" \
|
||||
MANPAGE_DIR="${IMAGE}/usr/share/man/man6" \
|
||||
FULL_PATH_EXTRA_DATA_DIR="${IMAGE}/usr/share/ja2" \
|
||||
install
|
||||
emake \
|
||||
BINARY_DIR="${IMAGE}/usr/$(exhost --target)/bin" \
|
||||
MANPAGE_DIR="${IMAGE}/usr/share/man/man6" \
|
||||
FULL_PATH_EXTRA_DATA_DIR="${IMAGE}/usr/share/ja2" \
|
||||
install
|
||||
|
||||
insinto /usr/share/ja2/data
|
||||
doins "${WORKBASE}"/editor.slf
|
||||
@@ -55,11 +55,11 @@ EOF
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You need to copy all files from the Data directory of"
|
||||
elog "Jagged Alliance 2 installation to"
|
||||
elog "/usr/share/ja2/data "
|
||||
elog "Make sure the filenames are lowercase. You may want to run the"
|
||||
elog "script"
|
||||
elog "/usr/bin/ja2-convert"
|
||||
elog "You need to copy all files from the Data directory of"
|
||||
elog "Jagged Alliance 2 installation to"
|
||||
elog "/usr/share/ja2/data "
|
||||
elog "Make sure the filenames are lowercase. You may want to run the"
|
||||
elog "script"
|
||||
elog "/usr/bin/ja2-convert"
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ SUMMARY="A free RTS engine supporting games like Command & Conquer and Red Alert
|
||||
HOMEPAGE="http://www.openra.net/"
|
||||
DOWNLOADS="https://github.com/OpenRA/OpenRA/archive/release-${PV}.tar.gz -> ${PNV}.tar.gz"
|
||||
|
||||
## this is a massive amount of 3rd party deps that would otherwise
|
||||
## be fetched during build time
|
||||
NG_SRC="https://nuget.org/api/v2/package"
|
||||
# 3rd party deps
|
||||
StyleCopPlus_MSBuild="${NG_SRC}/StyleCopPlus.MSBuild/4.7.49.5 -> StyleCopPlus_MSBuild-4.7.49.5.zip"
|
||||
@@ -69,50 +71,50 @@ DEPENDENCIES="
|
||||
WORK=${WORKBASE}/OpenRA-release-${PV}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${PNV}.tar.gz
|
||||
unpack ${PNV}.tar.gz
|
||||
|
||||
# this is pure crapshit, but it will successfully die
|
||||
# if upstream has added/changed files
|
||||
edo cd "${WORK}"/thirdparty
|
||||
edo sed -i \
|
||||
-e 's/get()/furz()/' \
|
||||
-e 's|curl |: |' \
|
||||
fetch-thirdparty-deps.sh
|
||||
# this is pure crapshit, but it will successfully die
|
||||
# if upstream has added/changed files
|
||||
edo cd "${WORK}"/thirdparty
|
||||
edo sed -i \
|
||||
-e 's/get()/furz()/' \
|
||||
-e 's|curl |: |' \
|
||||
fetch-thirdparty-deps.sh
|
||||
|
||||
edo mkdir "${WORK}"/thirdparty/download
|
||||
get() {
|
||||
# don't add dies here
|
||||
local archive="${1/./_}"
|
||||
local version="${2}"
|
||||
mkdir -p "${WORK}"/thirdparty/download/${1}
|
||||
unzip -o -qq "${FETCHEDDIR}"/${archive}-${version}.zip \
|
||||
-d "${WORK}"/thirdparty/download/${1}
|
||||
}
|
||||
export -f get
|
||||
edo ./fetch-thirdparty-deps.sh
|
||||
unset get
|
||||
edo cd "${WORK}"/thirdparty/download
|
||||
edo cp "${FETCHEDDIR}"/${SDL2CS##* } ./SDL2-CS.dll
|
||||
edo cp "${FETCHEDDIR}"/${Eluant##* } ./Eluant.dll
|
||||
edo cp "${FETCHEDDIR}"/${GEO_IP_DB##* } ./GeoLite2-Country.mmdb.gz
|
||||
edo mkdir "${WORK}"/thirdparty/download
|
||||
get() {
|
||||
# don't add dies here
|
||||
local archive="${1/./_}"
|
||||
local version="${2}"
|
||||
mkdir -p "${WORK}"/thirdparty/download/${1}
|
||||
unzip -o -qq "${FETCHEDDIR}"/${archive}-${version}.zip \
|
||||
-d "${WORK}"/thirdparty/download/${1}
|
||||
}
|
||||
export -f get
|
||||
edo ./fetch-thirdparty-deps.sh
|
||||
unset get
|
||||
edo cd "${WORK}"/thirdparty/download
|
||||
edo cp "${FETCHEDDIR}"/${SDL2CS##* } ./SDL2-CS.dll
|
||||
edo cp "${FETCHEDDIR}"/${Eluant##* } ./Eluant.dll
|
||||
edo cp "${FETCHEDDIR}"/${GEO_IP_DB##* } ./GeoLite2-Country.mmdb.gz
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_prepare() {
|
||||
# register game-version
|
||||
emake VERSION="${PV}" version
|
||||
# register game-version
|
||||
emake VERSION="${PV}" version
|
||||
|
||||
edo sed \
|
||||
-e "s/@LIBLUA51@/liblua${LUA_SLOT}.so/" \
|
||||
"${WORK}"/thirdparty/Eluant.dll.config.in > Eluant.dll.config
|
||||
edo sed \
|
||||
-e "s/@LIBLUA51@/liblua${LUA_SLOT}.so/" \
|
||||
"${WORK}"/thirdparty/Eluant.dll.config.in > Eluant.dll.config
|
||||
|
||||
edo cd "${WORK}"/thirdparty/download
|
||||
edo cp *.dll *.dll.config GeoLite2-Country.mmdb.gz "${WORK}"/
|
||||
edo cd "${WORK}"/thirdparty/download
|
||||
edo cp *.dll *.dll.config GeoLite2-Country.mmdb.gz "${WORK}"/
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake VERSION="${PV}" core tools
|
||||
emake VERSION="${PV}" core tools
|
||||
}
|
||||
|
||||
install_desktop_entry() {
|
||||
@@ -132,22 +134,22 @@ EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
datadir="/usr/share" \
|
||||
emake \
|
||||
datadir="/usr/share" \
|
||||
bindir="/usr/$(exhost --target)/bin" \
|
||||
libdir="/usr/$(exhost --target)/libexec" \
|
||||
VERSION="${PV}" \
|
||||
DESTDIR="${IMAGE}" \
|
||||
install-all install-linux-scripts install-linux-mime install-linux-icons
|
||||
libdir="/usr/$(exhost --target)/libexec" \
|
||||
VERSION="${PV}" \
|
||||
DESTDIR="${IMAGE}" \
|
||||
install-all install-linux-scripts install-linux-mime install-linux-icons
|
||||
|
||||
exeinto /usr/$(exhost --target)/libexec/openra
|
||||
doexe Eluant.dll.config
|
||||
exeinto /usr/$(exhost --target)/libexec/openra
|
||||
doexe Eluant.dll.config
|
||||
|
||||
# desktop entries
|
||||
install_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN}
|
||||
install_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN}
|
||||
install_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN}
|
||||
install_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
|
||||
# desktop entries
|
||||
install_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN}
|
||||
install_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN}
|
||||
install_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN}
|
||||
install_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Fixes linux support
|
||||
|
||||
diff -burN zod_engine/zod_launcher_src/common.cpp zod_engine.new/zod_launcher_src/common.cpp
|
||||
--- zod_engine/zod_launcher_src/common.cpp 2011-03-22 12:05:11.000000000 +0100
|
||||
+++ zod_engine.new/zod_launcher_src/common.cpp 2012-05-05 22:50:56.000000000 +0200
|
||||
|
||||
@@ -33,9 +33,9 @@ DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove unused files
|
||||
edo find "${WORK}" -type f \( -name Thumbs.db -o -name "*.xcf" -o -name "*.ico" \) -delete
|
||||
edo rm assets/{splash.png,WebCamScene.icescene}
|
||||
# remove unused files
|
||||
edo find "${WORK}" -type f \( -name Thumbs.db -o -name "*.xcf" -o -name "*.ico" \) -delete
|
||||
edo rm assets/{splash.png,WebCamScene.icescene}
|
||||
|
||||
# fix some tool invocations
|
||||
eval $(eclectic wxwidgets script 2.8-gtk2)
|
||||
@@ -44,13 +44,13 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C zod_src DATA_PATH="\"/usr/share/${PN}\"" main map_editor
|
||||
emake -C zod_launcher_src DATA_PATH="\"/usr/share/${PN}\""
|
||||
emake -C zod_src DATA_PATH="\"/usr/share/${PN}\"" main map_editor
|
||||
emake -C zod_launcher_src DATA_PATH="\"/usr/share/${PN}\""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin zod_src/zod
|
||||
dodoc zod_engine_help.txt
|
||||
dobin zod_src/zod
|
||||
dodoc zod_engine_help.txt
|
||||
|
||||
dobin zod_src/zod_map_editor
|
||||
dodoc map_editor_help.txt
|
||||
@@ -69,7 +69,7 @@ Icon=zod-engine
|
||||
Categories=Game;StrategyGame;
|
||||
EOF
|
||||
|
||||
insinto /usr/share/zod-engine
|
||||
doins -r assets blank_maps *.map default_settings.txt *map_list.txt
|
||||
insinto /usr/share/zod-engine
|
||||
doins -r assets blank_maps *.map default_settings.txt *map_list.txt
|
||||
}
|
||||
|
||||
|
||||
@@ -40,11 +40,11 @@ foreach_make() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
foreach_make
|
||||
foreach_make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
foreach_make install DESTDIR="${IMAGE}" \
|
||||
foreach_make install DESTDIR="${IMAGE}" \
|
||||
INCDIR="${IMAGE}"/usr/$(exhost --target)/include \
|
||||
INSTALLDIR="${IMAGE}"/usr/$(exhost --target)/lib
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
Fixes build with gcc-5.x
|
||||
|
||||
Found at https://raw.githubusercontent.com/Homebrew/patches/f2b4fb19/freeimage/gcc5.diff
|
||||
diff --git a/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c
|
||||
index 55da0ff..40e4d82 100644
|
||||
--- a/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c
|
||||
|
||||
@@ -24,24 +24,24 @@ DEPENDENCIES="
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
MAKE_ARGS="
|
||||
UDEVDIR=${UDEVRULESDIR}
|
||||
LIBEXECDIR=/usr/$(exhost --target)/libexec/${PN}
|
||||
MAKE_ARGS="
|
||||
UDEVDIR=${UDEVRULESDIR}
|
||||
LIBEXECDIR=/usr/$(exhost --target)/libexec/${PN}
|
||||
PF=${PNVR}"
|
||||
|
||||
emake ${MAKE_ARGS} all
|
||||
emake ${MAKE_ARGS} all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install
|
||||
dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
|
||||
emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install
|
||||
dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -e "${ROOT}"/etc/conf.d/net ]]; then
|
||||
elog "The network configuration scripts will use dhcp by"
|
||||
elog "default to set up your interfaces."
|
||||
elog "If you need to set up something more complete, see"
|
||||
elog "${ROOT}/usr/share/doc/${PNVR}/README"
|
||||
fi
|
||||
if [[ ! -e "${ROOT}"/etc/conf.d/net ]]; then
|
||||
elog "The network configuration scripts will use dhcp by"
|
||||
elog "default to set up your interfaces."
|
||||
elog "If you need to set up something more complete, see"
|
||||
elog "${ROOT}/usr/share/doc/${PNVR}/README"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
commit afadc8d05674a0e3e2fcf6dfbcf5f3c8f9133119
|
||||
Author: hasufell <hasufell@hasufell.de>
|
||||
Author: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Sun May 18 19:32:59 2014 +0200
|
||||
|
||||
Respect CFLAGS/CXXFLAGS/LDFLAGS, fixes #66
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
From 27eb23c1844029ee64907500bd8aa87097ffcd32 Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@hasufell.de>
|
||||
From: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Sun, 18 May 2014 18:46:24 +0200
|
||||
Subject: [PATCH] Allow to control LIBDIR
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
commit 5e3d4a0504158f70d227e7cfc03985fe9a646797
|
||||
Author: hasufell <hasufell@hasufell.de>
|
||||
Author: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Wed Jul 2 12:58:50 2014 +0200
|
||||
|
||||
Fix NTL test build
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
From 3506d617ef9dfc5184aa99be05a25e4f73d6c3f6 Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@hasufell.de>
|
||||
From: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Sun, 18 May 2014 18:47:27 +0200
|
||||
Subject: [PATCH] Quote variables that could contain whitespaces
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ PLATFORMS="~amd64 ~x86"
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-libs/gmp
|
||||
dev-libs/mpfr
|
||||
dev-libs/mpfr
|
||||
"
|
||||
|
||||
DEFAULT_SRC_COMPILE_PARAMS=( verbose )
|
||||
@@ -26,13 +26,13 @@ src_prepare() {
|
||||
|
||||
src_configure() {
|
||||
# NOT an autotools script
|
||||
edo ./configure \
|
||||
--prefix="/usr" \
|
||||
--with-gmp="/usr" \
|
||||
--with-mpfr="/usr" \
|
||||
--disable-static \
|
||||
CC=${CC} \
|
||||
CXX=${CXX} \
|
||||
AR=${AR}
|
||||
edo ./configure \
|
||||
--prefix="/usr" \
|
||||
--with-gmp="/usr" \
|
||||
--with-mpfr="/usr" \
|
||||
--disable-static \
|
||||
CC=${CC} \
|
||||
CXX=${CXX} \
|
||||
AR=${AR}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ DESCRIPTION="Minimalistic Murmur (Mumble server)"
|
||||
HOMEPAGE="https://github.com/fatbob313/umurmur"
|
||||
DOWNLOADS="https://github.com/fatbob313/${PN}/archive/${PV}.tar.gz -> ${PNV}.tar.gz"
|
||||
|
||||
LICENCES="BSD"
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
@@ -39,20 +39,20 @@ src_install() {
|
||||
default
|
||||
|
||||
insinto /etc/init.d
|
||||
newins "${FILES}"/umurmurd.initd umurmurd
|
||||
newins "${FILES}"/umurmurd.initd umurmurd
|
||||
insinto /etc/conf.d
|
||||
newins "${FILES}"/umurmurd.confd umurmurd
|
||||
newins "${FILES}"/umurmurd.confd umurmurd
|
||||
install_systemd_files
|
||||
|
||||
local confdir="/etc/umurmur"
|
||||
insinto "${confdir}"
|
||||
doins "${FILES}"/umurmur.conf
|
||||
local confdir="/etc/umurmur"
|
||||
insinto "${confdir}"
|
||||
doins "${FILES}"/umurmur.conf
|
||||
|
||||
# Some permissions are adjusted as the config may contain a server
|
||||
# password, and /etc/umurmur will typically contain the cert and the
|
||||
# key used to sign it, which are read after priveleges are dropped.
|
||||
edo chmod 0750 "${IMAGE%/}/${confdir}"
|
||||
edo chown -R root:umurmur "${IMAGE%/}/${confdir}"
|
||||
edo chmod 0640 "${IMAGE%/}/${confdir}"/umurmur.conf
|
||||
# Some permissions are adjusted as the config may contain a server
|
||||
# password, and /etc/umurmur will typically contain the cert and the
|
||||
# key used to sign it, which are read after priveleges are dropped.
|
||||
edo chmod 0750 "${IMAGE%/}/${confdir}"
|
||||
edo chown -R root:umurmur "${IMAGE%/}/${confdir}"
|
||||
edo chmod 0640 "${IMAGE%/}/${confdir}"/umurmur.conf
|
||||
}
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ PLATFORMS="~amd64 ~x86"
|
||||
WORK=${WORKBASE}/${MY_P}
|
||||
|
||||
src_install () {
|
||||
default
|
||||
default
|
||||
|
||||
edo rm -f ChangeLog README LICENSE
|
||||
edo rm -f ChangeLog README LICENSE
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r *
|
||||
insinto /usr/share/${PN}
|
||||
doins -r *
|
||||
}
|
||||
|
||||
|
||||
@@ -71,36 +71,36 @@ CMAKE_SRC_CONFIGURE_TESTS=(
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
edo grep -E "^#ServerId =.*$" "config/hiawatha.conf.in" 1>/dev/null
|
||||
edo sed -r -i -e "s|^#ServerId =.*$|ServerId = hiawatha|" \
|
||||
config/hiawatha.conf.in
|
||||
edo grep -E "^#ServerId =.*$" "config/hiawatha.conf.in" 1>/dev/null
|
||||
edo sed -r -i -e "s|^#ServerId =.*$|ServerId = hiawatha|" \
|
||||
config/hiawatha.conf.in
|
||||
|
||||
edo grep -E "@HIAWATHA_PID_DIR@" "${FILES}/hiawatha.initd" 1>/dev/null
|
||||
edo sed -r -e "s|@HIAWATHA_PID_DIR@|${HIAWATHA_PID_DIR}|" \
|
||||
"${FILES}/hiawatha.initd" > "${TEMP}/hiawatha.initd"
|
||||
edo grep -E "@HIAWATHA_PID_DIR@" "${FILES}/hiawatha.initd" 1>/dev/null
|
||||
edo sed -r -e "s|@HIAWATHA_PID_DIR@|${HIAWATHA_PID_DIR}|" \
|
||||
"${FILES}/hiawatha.initd" > "${TEMP}/hiawatha.initd"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
cmake_src_install
|
||||
|
||||
edo rm -r "${IMAGE%/}${HIAWATHA_WEBROOT_DIR}"/*
|
||||
edo rm -r "${IMAGE%/}${HIAWATHA_WEBROOT_DIR}"/*
|
||||
|
||||
insinto /etc/init.d
|
||||
newins "${TEMP}"/hiawatha.initd hiawatha
|
||||
newins "${TEMP}"/hiawatha.initd hiawatha
|
||||
install_systemd_files
|
||||
|
||||
local i
|
||||
for i in "${HIAWATHA_LOG_DIR}" "${HIAWATHA_WORK_DIR}" ; do
|
||||
keepdir "${i}"
|
||||
edo chown ${HIAWATHA_USER}:${HIAWATHA_GROUP} "${IMAGE%/}${i}"
|
||||
edo chmod 0750 "${IMAGE%/}${i}"
|
||||
done
|
||||
local i
|
||||
for i in "${HIAWATHA_LOG_DIR}" "${HIAWATHA_WORK_DIR}" ; do
|
||||
keepdir "${i}"
|
||||
edo chown ${HIAWATHA_USER}:${HIAWATHA_GROUP} "${IMAGE%/}${i}"
|
||||
edo chmod 0750 "${IMAGE%/}${i}"
|
||||
done
|
||||
|
||||
# hiawatha creates empty /run dir
|
||||
edo rm -r "${IMAGE%/}/run"
|
||||
|
||||
keepdir "${HIAWATHA_WEBROOT_DIR}"
|
||||
edo chown ${HIAWATHA_USER}:${HIAWATHA_GROUP} \
|
||||
keepdir "${HIAWATHA_WEBROOT_DIR}"
|
||||
edo chown ${HIAWATHA_USER}:${HIAWATHA_GROUP} \
|
||||
"${IMAGE%/}${HIAWATHA_WEBROOT_DIR}"
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ DEPENDENCIES="
|
||||
"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/themes/Clearlooks-Phenix
|
||||
doins -r *
|
||||
insinto /usr/share/themes/Clearlooks-Phenix
|
||||
doins -r *
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user