parent
c27e095a63
commit
05bf47f132
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST spectre-meltdown-checker-0.37.tar.gz 40472 BLAKE2B 93d83605c2d410a176d944cbf7c83549cc70075dbd7ef1f90d4a9710d8fdafd0393c0ad6a9a46eba12f753a3b14d486ba093f9b7fb1dd6c08d17042a94f97b44 SHA512 f621e81a783e8e01caae25d76fae6ab7bd091990cd0a0f93de2e29e1964b6f0952c221c64e4e045f26231f800b0ba1b8152aac71a7348e8577ac6b9bd7e31cf2
|
||||
DIST spectre-meltdown-checker-0.38.tar.gz 43243 BLAKE2B 84ec661106415fad3a596fb4ff22ef1083837c0903ad3fef13a5516fe606b5b943c3805bd00a75ad8dd069a9d40da9b969f8d19d03e5d4e9274c2bce10da500c SHA512 d71aafdb8507fc035a728b3179943cb63250cb7527a0bbc2d21d3c8c6a70460b980a9549ba1c9c36705eedd65db943a361eeaafa0acdee5c6d4785b2652dfecb
|
||||
DIST spectre-meltdown-checker-0.39.tar.gz 43785 BLAKE2B c8688b28eac8951b3cf813cd591adc9cb01756a1da149129d2045274bf3d01c56a9145c4dd9154f6229d53a993dd8803e6c0cca866710ba09973f13421be4e6f SHA512 175bc147356e9730fb13f71c66e8826e85e3ad4e0d7f1fbb075f8310e1763f442b3da85fae70f107dcd77172d498fb24857c9e8343cb6813857039d55e9eab6f
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/speed47/spectre-meltdown-checker.git"
|
||||
else
|
||||
SRC_URI="https://github.com/speed47/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Spectre & Meltdown vulnerability/mitigation checker for Linux"
|
||||
HOMEPAGE="https://github.com/speed47/spectre-meltdown-checker"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
newbin spectre-meltdown-checker.sh spectre-meltdown-checker
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST wanderlust-2.14.0-20050405.patch.gz 3926 BLAKE2B 0986f743e512cc7216554585c1c62af659fe35873bfcdfdb520e4085ec2606360ae1a29566ac756ad0e7f03cc51d1e5c0bd7460c8448ceb6251004d887858885 SHA512 103e8eda374eab453363f3a735d877e313ff341e09abd66093bd090b404738d42d98edf5d1c9c8e8966963bf972d462aebc28ea6e470126af9266188247c4044
|
||||
DIST wanderlust-2.15.9_p20130619.tar.xz 818124 BLAKE2B b6bbd6f63d862f81a5a0c194f0fe1b276303f75f8ffde29c844f1f7d2d8ef55f1c211ac1d0b6c3357c2507b2abe73ba1c4c8f5fc65e067d93eb6bf23fd8490a6 SHA512 91bdcc1b29370b7be7a2072f4d8c638b3c0604ba31b5419952b848af268e73a3f199f07a88caabec56f66b38013e0f9cd7c1de26b46d1062ddff782e8080d4e0
|
||||
DIST wanderlust-2.15.9_p20180814-git.tar.gz 1207081 BLAKE2B f52259b15040287f0afcf0768b3ae3237415b44960e205e48d4b658f3e522db993b87bac59ee3d9ba94ad26c830beaf26d9cf5f03830fcb1f01e4f5567ee4804 SHA512 67616cc1d35b25af1b56fa800943ad0c7e7d9b35f99c48fac96b77a68a3eb8db02b36525021ff8bba4d181530505face2a58725b7dff33b1bfe4f48a4314949f
|
||||
DIST wl-2.14.0.tar.gz 1101505 BLAKE2B 5ceb3a8e294b230d48d50134e3dc07b9e19a9470907a488a2e41e53da54a8826a50cb53c06c5f3f1a5bdd1b5760bc6acd6cc75a25e63d092f1a9b80b3f073ed5 SHA512 edb49c0c9ddbd50cba4ce4cdd1b2d609cee9553d063aeb4775d0b43e0ed83cc6374aa47b11b3ff94a55827f7a9a29f7c1054e0fd9b3a5a25a2c410b241d268d2
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Yet Another Message Interface on Emacsen"
|
||||
HOMEPAGE="https://github.com/wanderlust/wanderlust"
|
||||
GITHUB_SHA1="395826e99b84051396d503392f52462b6cb683a5"
|
||||
SRC_URI="${HOMEPAGE}/archive/${GITHUB_SHA1}.tar.gz -> ${P}-git.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${GITHUB_SHA1}"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="bbdb ssl l10n_ja"
|
||||
|
||||
DEPEND=">=app-emacs/apel-10.6
|
||||
virtual/emacs-flim
|
||||
app-emacs/semi
|
||||
bbdb? ( app-emacs/bbdb )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_configure() {
|
||||
local lang="\"en\""
|
||||
use l10n_ja && lang="${lang} \"ja\""
|
||||
echo "(setq wl-info-lang '(${lang}) wl-news-lang '(${lang}))" >>WL-CFG
|
||||
use ssl && echo "(setq wl-install-utils t)" >>WL-CFG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake info
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
LISPDIR="${ED}${SITELISP}" \
|
||||
PIXMAPDIR="${ED}${SITEETC}/wl/icons" \
|
||||
install
|
||||
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" wl
|
||||
|
||||
insinto "${SITEETC}/wl/samples/en"
|
||||
doins samples/en/*
|
||||
doinfo doc/wl*.info
|
||||
dodoc BUGS ChangeLog INSTALL NEWS README.md
|
||||
|
||||
if use l10n_ja; then
|
||||
insinto "${SITEETC}/wl/samples/ja"
|
||||
doins samples/ja/*
|
||||
dodoc BUGS.ja INSTALL.ja NEWS.ja README.ja
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST nnn-1.6.tar.gz 37456 BLAKE2B 90a6bcf7123b763585a05d5898ecee129561fa11dddbc40125f536b96315e4847b6187615df2bb6e0262d3df5efeec83d6681092ed69e4b65cd5486cf396e7e6 SHA512 7172f37f98f15b37cd2959c5ad144d32f55cde9cd2fe3221fc7a23887d3326da924c9be0bdc61a01a4d98ceb9b03de2420a66cc2cbf94a2ae1547da206e4c49a
|
||||
DIST nnn-1.8.tar.gz 42534 BLAKE2B acf1f9e211ddf688da96c77364f8eb2d12c853fa528774f2a3f8fa146203b155df089f6a3c995f0415d5349e9bb0c519cd0776c77094a83c23ecfe45561c846d SHA512 dfa3fc20cc9d77dc6a998913d79c1f98467f9e0f475d43317fe5b3b7c85f04a8aa1508305307873115ff810f5e212272e8348af9d8bd5283f48ad76ed34cad55
|
||||
DIST nnn-1.9.tar.gz 43405 BLAKE2B c085f13883eb379cc04b225d3a6bdbc95dcfb200a0c338bea82b64841918f41560a0b53ed49be0cf8eaec852eb1575d050197ece197fd655c2a3ba1c6cf20d57 SHA512 44eb3d569429ee27e35c0a1299e7cb248072b470b462a361eec3364163f03f577a1b28819cddfc9a85002d6ae90c61cc0633f0548c58cb154dfd8e6491c73369
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="The missing terminal file browser for X"
|
||||
HOMEPAGE="https://github.com/jarun/nnn"
|
||||
SRC_URI="https://github.com/jarun/nnn/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="sys-libs/ncurses:0=
|
||||
sys-libs/readline:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
tc-export CC
|
||||
sed -i -e '/strip/d' Makefile || die "sed failed"
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="/usr" DESTDIR="${D}" install
|
||||
|
||||
newbashcomp scripts/auto-completion/bash/nnn-completion.bash nnn
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins scripts/auto-completion/fish/nnn.fish
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins scripts/auto-completion/zsh/_nnn
|
||||
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1,58 +0,0 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.63)
|
||||
AC_INIT(redis, 2.0.0, antirez@gmail.com)
|
||||
AM_CFLAGS="-std=c99 -pedantic -Wall -W -D__EXTENSIONS__ -D_XPG6"
|
||||
if test x"$CFLAGS" = x""; then
|
||||
AM_CFLAGS="$AM_CFLAGS -O2"
|
||||
else
|
||||
AM_CFLAGS="$AM_CFLAGS $CFLAGS"
|
||||
fi
|
||||
|
||||
# options
|
||||
AC_MSG_CHECKING([whether to build with debug information])
|
||||
AC_ARG_ENABLE([debug],
|
||||
[AS_HELP_STRING([--enable-debug],
|
||||
[enable debug data generation (def=no)])],
|
||||
[debugit="$enableval"],
|
||||
[debugit=no])
|
||||
AC_MSG_RESULT([$debugit])
|
||||
|
||||
if test x"$debugit" = x"yes"; then
|
||||
AC_DEFINE([DEBUG],[],[Debug Mode])
|
||||
AM_CFLAGS="$AM_CFLAGS -g -rdynamic -ggdb"
|
||||
else
|
||||
AC_DEFINE([NDEBUG],[],[No-debug Mode])
|
||||
fi
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
||||
# Checks for libraries.
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_HEADER_STDBOOL
|
||||
AC_C_INLINE
|
||||
AC_TYPE_INT16_T
|
||||
AC_TYPE_INT32_T
|
||||
AC_TYPE_OFF_T
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_SSIZE_T
|
||||
AC_TYPE_UINT16_T
|
||||
AC_TYPE_UINT32_T
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_ERROR_AT_LINE
|
||||
AC_FUNC_FORK
|
||||
AC_FUNC_STRCOLL
|
||||
AC_FUNC_STRTOD
|
||||
AC_CHECK_FUNCS([dup2 gethostbyname gettimeofday inet_ntoa memchr memmove memset select socket strcasecmp strchr strerror strstr strtol])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
@ -1,46 +0,0 @@
|
||||
--- a/redis.conf 2014-12-02 16:22:38.722433643 +0100
|
||||
+++ b/redis.conf 2014-12-02 16:22:16.252249350 +0100
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
|
||||
# default. You can specify a custom pid file location here.
|
||||
-pidfile /var/run/redis.pid
|
||||
+pidfile /run/redis/redis.pid
|
||||
|
||||
# Accept connections on the specified port, default is 6379.
|
||||
# If port 0 is specified Redis will not listen on a TCP socket.
|
||||
@@ -61,7 +61,7 @@
|
||||
# Examples:
|
||||
#
|
||||
# bind 192.168.1.100 10.0.0.1
|
||||
-# bind 127.0.0.1
|
||||
+bind 127.0.0.1
|
||||
|
||||
# Specify the path for the Unix socket that will be used to listen for
|
||||
# incoming connections. There is no default, so Redis will not listen
|
||||
@@ -100,7 +100,7 @@
|
||||
# Specify the log file name. Also the empty string can be used to force
|
||||
# Redis to log on the standard output. Note that if you use standard
|
||||
# output for logging but daemonize, logs will be sent to /dev/null
|
||||
-logfile ""
|
||||
+logfile /var/log/redis/redis.log
|
||||
|
||||
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
|
||||
# and optionally update the other syslog parameters to suit your needs.
|
||||
@@ -184,7 +184,7 @@
|
||||
# The Append Only File will also be created inside this directory.
|
||||
#
|
||||
# Note that you must specify a directory here, not a file name.
|
||||
-dir ./
|
||||
+dir /var/lib/redis/
|
||||
|
||||
################################# REPLICATION #################################
|
||||
|
||||
@@ -403,6 +403,7 @@
|
||||
# output buffers (but this is not needed if the policy is 'noeviction').
|
||||
#
|
||||
# maxmemory <bytes>
|
||||
+maxmemory 67108864
|
||||
|
||||
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
|
||||
# is reached. You can select among five behaviors:
|
@ -1,36 +0,0 @@
|
||||
commit 388a76f24c96767c831ee7682234fd9f2bc5b9ac
|
||||
Author: Johan Bergström <bugs@bergstroem.nu>
|
||||
Date: Mon Nov 25 09:17:14 2013 +1100
|
||||
|
||||
Use shared jemalloc
|
||||
|
||||
diff --git src/Makefile src/Makefile
|
||||
index c37549d..77e6255 100644
|
||||
--- src/Makefile
|
||||
+++ src/Makefile
|
||||
@@ -26,12 +26,7 @@ PREFIX?=/usr/local
|
||||
INSTALL_BIN=$(PREFIX)/bin
|
||||
INSTALL=install
|
||||
|
||||
-# Default allocator
|
||||
-ifeq ($(uname_S),Linux)
|
||||
- MALLOC=jemalloc
|
||||
-else
|
||||
- MALLOC=libc
|
||||
-endif
|
||||
+MALLOC?=jemalloc
|
||||
|
||||
# Backwards compatibility for selecting an allocator
|
||||
ifeq ($(USE_TCMALLOC),yes)
|
||||
@@ -79,9 +74,8 @@ ifeq ($(MALLOC),tcmalloc_minimal)
|
||||
endif
|
||||
|
||||
ifeq ($(MALLOC),jemalloc)
|
||||
- DEPENDENCY_TARGETS+= jemalloc
|
||||
- FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
|
||||
- FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a -ldl
|
||||
+ FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
|
||||
+ FINAL_LIBS+= -ljemalloc -ldl
|
||||
endif
|
||||
|
||||
REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
|
@ -1,44 +0,0 @@
|
||||
commit fd0fc43f6e0ea45bce0e1a68c1f736e481fc4429
|
||||
Author: Johan Bergström <bugs@bergstroem.nu>
|
||||
Date: Thu Apr 2 14:33:51 2015 +1100
|
||||
|
||||
Use shared LUA
|
||||
|
||||
diff --git src/Makefile src/Makefile
|
||||
index a88f1d2..f71e7b5 100644
|
||||
--- src/Makefile
|
||||
+++ src/Makefile
|
||||
@@ -15,7 +15,7 @@
|
||||
release_hdr := $(shell sh -c './mkreleasehdr.sh')
|
||||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||
OPTIMIZATION?=-O2
|
||||
-DEPENDENCY_TARGETS=hiredis linenoise lua
|
||||
+DEPENDENCY_TARGETS=hiredis linenoise
|
||||
|
||||
# Default settings
|
||||
STD=-std=c99 -pedantic
|
||||
@@ -47,6 +47,7 @@ endif
|
||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
||||
FINAL_LIBS=-lm
|
||||
+FINAL_LIBS+=$(shell pkg-config --libs lua)
|
||||
DEBUG=-g -ggdb
|
||||
|
||||
ifeq ($(uname_S),SunOS)
|
||||
@@ -108,6 +109,7 @@ endif
|
||||
REDIS_SERVER_NAME=redis-server
|
||||
REDIS_SENTINEL_NAME=redis-sentinel
|
||||
REDIS_SERVER_OBJ=adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o
|
||||
+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o
|
||||
REDIS_CLI_NAME=redis-cli
|
||||
REDIS_CLI_OBJ=anet.o sds.o adlist.o redis-cli.o zmalloc.o release.o anet.o ae.o crc64.o
|
||||
REDIS_BENCHMARK_NAME=redis-benchmark
|
||||
@@ -162,7 +164,7 @@ endif
|
||||
|
||||
# redis-server
|
||||
$(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ)
|
||||
- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS)
|
||||
+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS)
|
||||
|
||||
# redis-sentinel
|
||||
$(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME)
|
@ -1,20 +0,0 @@
|
||||
# Redis user.
|
||||
REDIS_USER="redis"
|
||||
|
||||
# Redis group.
|
||||
REDIS_GROUP="redis"
|
||||
|
||||
# Redis configuration file.
|
||||
REDIS_CONF="/etc/redis.conf"
|
||||
|
||||
# Redis dump directory.
|
||||
REDIS_DIR="/var/lib/redis"
|
||||
|
||||
# Redis pid file.
|
||||
# (Be sure to change the main redis configuration file as well if you change
|
||||
# this from the default.)
|
||||
REDIS_PID="/var/run/redis/redis.pid"
|
||||
|
||||
# Redis options.
|
||||
# (Redis expects the first argument to be the configuration file.)
|
||||
REDIS_OPTS="${REDIS_CONF}"
|
@ -1,31 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
REDIS_DIR=${REDIS_DIR:-/var/lib/redis}
|
||||
REDIS_CONF=${REDIS_CONF:-/etc/redis.conf}
|
||||
REDIS_OPTS=${REDIS_OPTS:-"${REDIS_CONF}"}
|
||||
REDIS_USER=${REDIS_USER:-redis}
|
||||
REDIS_GROUP=${REDIS_GROUP:-redis}
|
||||
REDIS_TIMEOUT=${REDIS_TIMEOUT:-30}
|
||||
|
||||
command=/usr/sbin/redis-server
|
||||
pidfile=${REDIS_PID:-/run/redis/redis.pid}
|
||||
start_stop_daemon_args="--background --pidfile ${pidfile} --chdir \"${REDIS_DIR}\" --user ${REDIS_USER} --group ${REDIS_GROUP}"
|
||||
command_args="${REDIS_OPTS}"
|
||||
|
||||
depend() {
|
||||
use net localmount logger
|
||||
after keepalived
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0775 -o ${REDIS_USER}:${REDIS_GROUP} $(dirname ${REDIS_PID})
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop \
|
||||
--exec ${command} \
|
||||
--retry ${REDIS_TIMEOUT} \
|
||||
--pidfile ${pidfile}
|
||||
eend
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 arm hppa ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc test"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1:*
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.8.3-shared.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.8.17-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.0.0-sharedlua.patch
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-2.2 configure.ac
|
||||
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 arm hppa ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc test"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1:*
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.8.3-shared.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.8.17-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.0.0-sharedlua.patch
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-2.2 configure.ac
|
||||
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
@ -1,123 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 ~arm arm64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc luajit test"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:* )
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-3.2.5-shared.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-config.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-sharedlua.patch
|
||||
eapply_user
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-3.2 configure.ac
|
||||
sed -i \
|
||||
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,lua,g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with luajit)
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# geohash-int can't be built with -std=c99 either
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/geohash-int/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
@ -1,123 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc luajit test"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:* )
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-3.2.5-shared.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-config.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-sharedlua.patch
|
||||
eapply_user
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-3.2 configure.ac
|
||||
sed -i \
|
||||
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,lua,g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with luajit)
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# geohash-int can't be built with -std=c99 either
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/geohash-int/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc luajit test"
|
||||
SLOT="0"
|
||||
|
||||
# Does NOT build with Lua 5.2 or newer at this time.
|
||||
RDEPEND="luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( || ( dev-lang/lua:5.1 =dev-lang/lua-5.1*:0 ) )
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-4.0.1-shared.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-config.patch \
|
||||
"${FILESDIR}"/${PN}-4.0.1-sharedlua.patch
|
||||
eapply_user
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-3.2 configure.ac
|
||||
|
||||
# Use the correct pkgconfig name for Lua
|
||||
has_version 'dev-lang/lua:5.1' \
|
||||
&& LUAPKGCONFIG=lua5.1 \
|
||||
|| LUAPKGCONFIG=lua
|
||||
sed -i \
|
||||
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with luajit)
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
@ -1,122 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||
HOMEPAGE="http://redis.io/"
|
||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+jemalloc tcmalloc luajit test"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:* )
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.63
|
||||
test? ( dev-lang/tcl:0= )
|
||||
${RDEPEND}"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup redis 75
|
||||
enewuser redis 75 -1 /var/lib/redis redis
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-4.0.1-shared.patch \
|
||||
"${FILESDIR}"/${PN}-3.2.3-config.patch \
|
||||
"${FILESDIR}"/${PN}-4.0.1-sharedlua.patch
|
||||
eapply_user
|
||||
|
||||
# Copy lua modules into build dir
|
||||
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||
# Append cflag for lua_cjson
|
||||
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||
|
||||
# now we will rewrite present Makefiles
|
||||
local makefiles=""
|
||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||
mv "${MKF}" "${MKF}.in"
|
||||
sed -i -e 's:$(CC):@CC@:g' \
|
||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||
-e 's: $(DEBUG)::g' \
|
||||
-e 's:$(OBJARCH)::g' \
|
||||
-e 's:ARCH:TARCH:g' \
|
||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||
"${MKF}.in" \
|
||||
|| die "Sed failed for ${MKF}"
|
||||
makefiles+=" ${MKF}"
|
||||
done
|
||||
# autodetection of compiler and settings; generates the modified Makefiles
|
||||
cp "${FILESDIR}"/configure.ac-3.2 configure.ac
|
||||
sed -i \
|
||||
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,lua,g" \
|
||||
configure.ac || die "Sed failed for configure.ac"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with luajit)
|
||||
|
||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||
# also, don't define ANSI/c99 for lua twice
|
||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local myconf=""
|
||||
|
||||
if use tcmalloc ; then
|
||||
myconf="${myconf} USE_TCMALLOC=yes"
|
||||
elif use jemalloc ; then
|
||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||
else
|
||||
myconf="${myconf} MALLOC=yes"
|
||||
fi
|
||||
|
||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/
|
||||
doins redis.conf sentinel.conf
|
||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||
fperms 0644 /etc/{redis,sentinel}.conf
|
||||
|
||||
newconfd "${FILESDIR}/redis.confd" redis
|
||||
newinitd "${FILESDIR}/redis.initd-4" redis
|
||||
|
||||
systemd_newunit "${FILESDIR}/redis.service-2" redis.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
||||
|
||||
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||
|
||||
dobin src/redis-cli
|
||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||
fperms 0750 /usr/sbin/redis-benchmark
|
||||
dosym redis-server /usr/sbin/redis-sentinel
|
||||
|
||||
if use prefix; then
|
||||
diropts -m0750
|
||||
else
|
||||
diropts -m0750 -o redis -g redis
|
||||
fi
|
||||
keepdir /var/{log,lib}/redis
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Library routines related to building,parsing and iterating BSON documents"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson"
|
||||
SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="examples static-libs"
|
||||
|
||||
DEPEND="dev-python/sphinx"
|
||||
|
||||
S="${WORKDIR}/mongo-c-driver-${PV}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_BSON=ON
|
||||
-DENABLE_EXAMPLES=OFF
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_MONGOC=OFF
|
||||
-DENABLE_TESTS=OFF
|
||||
-DENABLE_STATIC="$(usex static-libs ON OFF)"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc src/libbson/examples/*.c
|
||||
fi
|
||||
|
||||
cmake-utils_src_install
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
|
||||
index d09d706..5d84225 100644
|
||||
--- a/src/libmongoc/CMakeLists.txt
|
||||
+++ b/src/libmongoc/CMakeLists.txt
|
||||
@@ -109,7 +109,9 @@ if (NOT ENABLE_SSL STREQUAL OFF)
|
||||
if (LIBRESSL_FOUND)
|
||||
message ("-- Found ${LIBRESSL_LIBRARIES}")
|
||||
set (SSL_LIBRARIES ${LIBRESSL_LIBRARIES})
|
||||
- include_directories ("${LIBRESSL_INCLUDE_DIRS}")
|
||||
+ if (${LIBRESSL_INCLUDE_DIRS})
|
||||
+ include_directories ("${LIBRESSL_INCLUDE_DIRS}")
|
||||
+ endif ()
|
||||
link_directories ("${LIBRESSL_LIBRARY_DIRS}")
|
||||
set (LIBRESSL 1)
|
||||
else ()
|
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Client library written in C for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-c-driver"
|
||||
SRC_URI="https://github.com/mongodb/mongo-c-driver/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~x86"
|
||||
IUSE="debug examples libressl sasl ssl static-libs test"
|
||||
REQUIRED_USE="test? ( static-libs )"
|
||||
|
||||
RDEPEND="app-arch/snappy:=
|
||||
>=dev-libs/libbson-${PV}
|
||||
dev-python/sphinx
|
||||
sys-libs/zlib:=
|
||||
sasl? ( dev-libs/cyrus-sasl:= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-db/mongodb
|
||||
dev-libs/libbson[static-libs]
|
||||
)"
|
||||
|
||||
# No tests on x86 because tests require dev-db/mongodb which don't support
|
||||
# x86 anymore (bug #645994)
|
||||
RESTRICT="x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.11.0-enable-tests.patch" # enable tests without libbson
|
||||
"${FILESDIR}/${PN}-1.12.0-libressl.patch" # Bug 662654
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
# copy private headers for tests since we don't build libbson
|
||||
if use test; then
|
||||
for f in bson-fnv-private.h bson-iso8601-private.h bson-private.h bson-thread-private.h; do
|
||||
cp -v src/libbson/src/bson/${f} src/libbson/tests/ || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON # mongoc-stat insecure runpath
|
||||
-DENABLE_BSON=SYSTEM
|
||||
-DENABLE_EXAMPLES=OFF
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_MONGOC=ON
|
||||
-DENABLE_SNAPPY=SYSTEM
|
||||
-DENABLE_ZLIB=SYSTEM
|
||||
-DENABLE_SASL="$(usex sasl CYRUS OFF)"
|
||||
-DENABLE_SSL="$(usex ssl $(usex libressl LIBRESSL OPENSSL) OFF)"
|
||||
-DENABLE_STATIC="$(usex static-libs ON OFF)"
|
||||
-DENABLE_TESTS="$(usex test ON OFF)"
|
||||
-DENABLE_TRACING="$(usex debug ON OFF)"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
# FEATURES="test" USE="static-libs" emerge dev-libs/mongo-c-driver
|
||||
src_test() {
|
||||
local PORT=27099
|
||||
mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \
|
||||
--dbpath="${T}" --logpath="${T}/mongod.log" || die
|
||||
MONGOC_TEST_URI="mongodb://[127.0.0.1]:${PORT}" ../mongo-c-driver-${PV}_build/src/libmongoc/test-libmongoc || die
|
||||
kill $(<"${T}/mongod.lock")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc src/libmongoc/examples/*.c
|
||||
fi
|
||||
|
||||
cmake-utils_src_install
|
||||
}
|
@ -0,0 +1,300 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
|
||||
|
||||
PATCH_SET="openssl-1.0.2-patches-1.5"
|
||||
MY_P=${P/_/-}
|
||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
||||
HOMEPAGE="https://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
|
||||
!vanilla? (
|
||||
mirror://gentoo/${PATCH_SET}.tar.xz
|
||||
https://dev.gentoo.org/~chutzpah/dist/${PN}/${PATCH_SET}.tar.xz
|
||||
https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz
|
||||
https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}.tar.xz
|
||||
)"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="+asm bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 sslv2 +sslv3 static-libs test +tls-heartbeat vanilla zlib"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
RDEPEND=">=app-misc/c_rehash-1.7-r1
|
||||
gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
|
||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
|
||||
kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/perl-5
|
||||
sctp? ( >=net-misc/lksctp-tools-1.0.12 )
|
||||
test? (
|
||||
sys-apps/diffutils
|
||||
sys-devel/bc
|
||||
)"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
# This does not copy the entire Fedora patchset, but JUST the parts that
|
||||
# are needed to make it safe to use EC with RESTRICT=bindist.
|
||||
# See openssl.spec for the matching numbering of SourceNNN, PatchNNN
|
||||
SOURCE1=hobble-openssl
|
||||
SOURCE12=ec_curve.c
|
||||
SOURCE13=ectest.c
|
||||
# These are ported instead
|
||||
#PATCH1=openssl-1.1.0-build.patch # Fixes EVP testcase for EC
|
||||
#PATCH37=openssl-1.1.0-ec-curves.patch
|
||||
FEDORA_GIT_BASE='https://src.fedoraproject.org/cgit/rpms/openssl.git/plain/'
|
||||
FEDORA_GIT_BRANCH='f25'
|
||||
FEDORA_SRC_URI=()
|
||||
FEDORA_SOURCE=( $SOURCE1 $SOURCE12 $SOURCE13 )
|
||||
FEDORA_PATCH=( $PATCH1 $PATCH37 )
|
||||
for i in "${FEDORA_SOURCE[@]}" ; do
|
||||
FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${P}_${i}" )
|
||||
done
|
||||
for i in "${FEDORA_PATCH[@]}" ; do # Already have a version prefix
|
||||
FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${i}" )
|
||||
done
|
||||
SRC_URI+=" bindist? ( ${FEDORA_SRC_URI[@]} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
usr/include/openssl/opensslconf.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use bindist; then
|
||||
# This just removes the prefix, and puts it into WORKDIR like the RPM.
|
||||
for i in "${FEDORA_SOURCE[@]}" ; do
|
||||
cp -f "${DISTDIR}"/"${P}_${i}" "${WORKDIR}"/"${i}" || die
|
||||
done
|
||||
# .spec %prep
|
||||
bash "${WORKDIR}"/"${SOURCE1}" || die
|
||||
cp -f "${WORKDIR}"/"${SOURCE12}" "${S}"/crypto/ec/ || die
|
||||
cp -f "${WORKDIR}"/"${SOURCE13}" "${S}"/crypto/ec/ || die # Moves to test/ in OpenSSL-1.1
|
||||
for i in "${FEDORA_PATCH[@]}" ; do
|
||||
eapply "${DISTDIR}"/"${i}"
|
||||
done
|
||||
eapply "${FILESDIR}"/openssl-1.0.2o-hobble-ecc.patch
|
||||
# Also see the configure parts below:
|
||||
# enable-ec \
|
||||
# $(use_ssl !bindist ec2m) \
|
||||
# $(use_ssl !bindist srp) \
|
||||
fi
|
||||
|
||||
# keep this in sync with app-misc/c_rehash
|
||||
SSL_CNF_DIR="/etc/ssl"
|
||||
|
||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||
# that gets blown away anyways by the Configure script in src_configure
|
||||
rm -f Makefile
|
||||
|
||||
if ! use vanilla ; then
|
||||
eapply "${WORKDIR}"/patch/*.patch
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
||||
# disable fips in the build
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
sed -i \
|
||||
-e '/DIRS/s: fips : :g' \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
|
||||
Makefile.org \
|
||||
|| die
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
|
||||
|
||||
# since we're forcing $(CC) as makedep anyway, just fix
|
||||
# the conditional as always-on
|
||||
# helps clang (#417795), and versioned gcc (#499818)
|
||||
# this breaks build with 1.0.2p, not sure if it is needed anymore
|
||||
#sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
|
||||
|
||||
# quiet out unknown driver argument warnings since openssl
|
||||
# doesn't have well-split CFLAGS and we're making it even worse
|
||||
# and 'make depend' uses -Werror for added fun (#417795 again)
|
||||
[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
|
||||
chmod a+rx gentoo.config || die
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags $(test-flags-CC -Wa,--noexecstack)
|
||||
append-cppflags -DOPENSSL_NO_BUF_FREELISTS
|
||||
|
||||
sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
|
||||
# The config script does stupid stuff to prompt the user. Kill it.
|
||||
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
unset CROSS_COMPILE #311473
|
||||
|
||||
tc-export CC AR RANLIB RC
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free https://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired https://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 https://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired https://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: Expired https://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
# See if our toolchain supports __uint128_t. If so, it's 64bit
|
||||
# friendly and can use the nicely optimized code paths. #460790
|
||||
local ec_nistp_64_gcc_128
|
||||
# Disable it for now though #469976
|
||||
#if ! use bindist ; then
|
||||
# echo "__uint128_t i;" > "${T}"/128.c
|
||||
# if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
|
||||
# ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
|
||||
# fi
|
||||
#fi
|
||||
|
||||
# https://github.com/openssl/openssl/issues/2286
|
||||
if use ia64 ; then
|
||||
replace-flags -g3 -g2
|
||||
replace-flags -ggdb3 -ggdb2
|
||||
fi
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
|
||||
# Fedora hobbled-EC needs 'no-ec2m', 'no-srp'
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use cpu_flags_x86_sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
enable-ec \
|
||||
$(use_ssl !bindist ec2m) \
|
||||
$(use_ssl !bindist srp) \
|
||||
${ec_nistp_64_gcc_128} \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
enable-rc5 \
|
||||
enable-tlsext \
|
||||
$(use_ssl asm) \
|
||||
$(use_ssl gmp gmp -lgmp) \
|
||||
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
|
||||
$(use_ssl rfc3779) \
|
||||
$(use_ssl sctp) \
|
||||
$(use_ssl sslv2 ssl2) \
|
||||
$(use_ssl sslv3 ssl3) \
|
||||
$(use_ssl tls-heartbeat heartbeats) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
|
||||
--libdir=$(get_libdir) \
|
||||
shared threads \
|
||||
|| die
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAG=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
|
||||
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# depend is needed to use $confopts; it also doesn't matter
|
||||
# that it's -j1 as the code itself serializes subdirs
|
||||
emake -j1 V=1 depend
|
||||
emake all
|
||||
# rehash is needed to prep the certs/ dir; do this
|
||||
# separately to avoid parallel build issues.
|
||||
emake rehash
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake INSTALL_PREFIX="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# openssl installs perl version of c_rehash by default, but
|
||||
# we provide a shell version via app-misc/c_rehash
|
||||
rm "${ED}"/usr/bin/c_rehash || die
|
||||
|
||||
local -a DOCS=( CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el )
|
||||
einstalldocs
|
||||
|
||||
use rfc3779 && dodoc engines/ccgost/README.gost
|
||||
|
||||
# This is crappy in that the static archives are still built even
|
||||
# when USE=static-libs. But this is due to a failing in the openssl
|
||||
# build system: the static archives are built as PIC all the time.
|
||||
# Only way around this would be to manually configure+compile openssl
|
||||
# twice; once with shared lib support enabled and once without.
|
||||
use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
|
||||
|
||||
# create the certs directory
|
||||
dodir ${SSL_CNF_DIR}/certs
|
||||
cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
|
||||
rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
|
||||
|
||||
# Namespace openssl programs to prevent conflicts with other man pages
|
||||
cd "${ED}"/usr/share/man
|
||||
local m d s
|
||||
for m in $(find . -type f | xargs grep -L '#include') ; do
|
||||
d=${m%/*} ; d=${d#./} ; m=${m##*/}
|
||||
[[ ${m} == openssl.1* ]] && continue
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
|
||||
mv ${d}/{,ssl-}${m}
|
||||
# fix up references to renamed man pages
|
||||
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
|
||||
ln -s ssl-${m} ${d}/openssl-${m}
|
||||
# locate any symlinks that point to this man page ... we assume
|
||||
# that any broken links are due to the above renaming
|
||||
for s in $(find -L ${d} -type l) ; do
|
||||
s=${s##*/}
|
||||
rm -f ${d}/${s}
|
||||
ln -s ssl-${m} ${d}/ssl-${s}
|
||||
ln -s ssl-${s} ${d}/openssl-${s}
|
||||
done
|
||||
done
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
|
||||
|
||||
dodir /etc/sandbox.d #254521
|
||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
||||
|
||||
diropts -m0700
|
||||
keepdir ${SSL_CNF_DIR}/private
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||
c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
|
||||
eend $?
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST pymongo-2.7.2.tar.gz 381455 BLAKE2B 8b8836f59387d4509312b7ee45f49ca228562a56dee6b7fbadf3074cfe47520691c6e86ed864d597f2bee627c86b79a54458862eb2ea12ad3705811c08b167ae SHA512 0e78495462d670c168e716a7c34e05f6a11a203f0bf9b32c1488608343588a48cbbb76ce715411b310359de19d9cd57c75f80ac7d8195a122a760cec22e8d0c7
|
||||
DIST pymongo-2.9.3.tar.gz 433339 BLAKE2B a6caf8dc6fbf1c56ac26ed817257584749797e6cc1b00f9969a5bf48d2b1473e3e3dba45988f8ad0ba909cbbc1069fbdb177c86473c4cbe047cd16844b77be5f SHA512 7b0c46ef1ca27e8c4d99d00c764aa1ce7775503d5210513ca848215fe0be847871c6d62d14f365474606b4abfdb7d1967d3f393e545cdca8929f7fa6a497c32f
|
||||
DIST pymongo-3.4.0.tar.gz 583303 BLAKE2B 2031b52731db8c5def167b2aceb4e1d064f0ff2391f71d2507cfc03ab932b4e1150d61a7b039b6183f5aa305e5e562110709a858174f37f0523d44d50d7c642c SHA512 c59dcc08803f23134aa4a86605fab0f5c59b829325b632fc1e0149f20018a544b3d65f3c1fda6066248cd258715339b1771ca8d40c38be02c301f5b6421abd1b
|
||||
DIST pymongo-3.5.1.tar.gz 1332463 BLAKE2B d581409a4b6cdede3e126e31747d34ed0e238919163ed442477ae51765ebdd1ebfb53fc94f7f1f53161c2019bf9db46640730aa54f19af6af25a37c95372308d SHA512 67526bcc27233b85226d7ef6aacce6dfb848efc88730fb8207c3b610f3943ac813f6c2842b7e514d733a65a2b7ea4f255574732e42372551b1b333e3437fd82f
|
||||
DIST pymongo-3.7.1.tar.gz 723014 BLAKE2B fd0be64f01006405f30e8d96e5edc0d565a8b67ec057a27b6143b4dd0592e2302efea65b6e3d4898d12e196b1efe01787aa608d8564573a83bfd193c703ba0c4 SHA512 34f7448c90a0741d1c80e5924d53e70d5c4bf74d140ea50cef1a519e11b7429dc8551ddb868ec4c02351da6619924ae0d4f7bfc12ef4fa9635c81e2f69aea30f
|
||||
|
@ -1 +1,2 @@
|
||||
DIST pyzmq-16.0.2.tar.gz 1026531 BLAKE2B b276fea116d56595ff2aca8a00b2b8918c0170cf1522c4bb457f6bb0d44a13e63de18e4d4f53238a1a5b515986e029ffebdded269f191d62eb36d988b328b402 SHA512 40eaf8ce39db86ab3866890d74b92bd6f20d4ae827828a8772003656d899d10ffcfc222d21f344d9daba390824e6c43b9f34e31beb604ec5ee1ec199165f4b96
|
||||
DIST pyzmq-17.1.0.tar.gz 1082716 BLAKE2B eed059cad8cc37e9315d16a43768f531ada1274b46bdf91d2ebe83cd0b4c269ea99a8532e3db6d0ea68be31600cf7d29ea4c4e894aa6d04c61534b11fb816d54 SHA512 7f1975c4d02e7d47577049da8df84753905d01672d5a244cef2e5b05e0b6fdb22e88cbb36f2e59831e95a8224819183d9a82baf1f9d7f599da61bcbfe2fc23d3
|
||||
|
@ -0,0 +1,22 @@
|
||||
Disable hanging test
|
||||
Bug: https://github.com/zeromq/pyzmq/issues/1202
|
||||
|
||||
Patch by Marius Brehler <marbre@linux.sungazer.de>
|
||||
--- pyzmq-17.1.0/zmq/tests/test_message.py
|
||||
+++ pyzmq-17.1.0/zmq/tests/test_message.py
|
||||
@@ -14,6 +14,7 @@ import time
|
||||
from pprint import pprint
|
||||
from unittest import TestCase
|
||||
|
||||
+import pytest
|
||||
import zmq
|
||||
from zmq.tests import BaseZMQTestCase, SkipTest, skip_pypy, PYPY
|
||||
from zmq.utils.strtypes import unicode, bytes, b, u
|
||||
@@ -262,6 +263,7 @@ class TestFrame(BaseZMQTestCase):
|
||||
self.assertEqual(s,r)
|
||||
self.assertEqual(s, m.bytes)
|
||||
|
||||
+ @pytest.mark.skip("test sometimes hangs")
|
||||
def test_buffer_numpy(self):
|
||||
"""test non-copying numpy array messages"""
|
||||
try:
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit flag-o-matic distutils-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
|
||||
HOMEPAGE="http://www.zeromq.org/bindings:python https://pypi.org/project/pyzmq/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
>=net-libs/zeromq-4.2.2-r2:=[drafts]
|
||||
dev-python/py[${PYTHON_USEDEP}]
|
||||
dev-python/cffi:=[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' python2_7)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' -2)
|
||||
>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
|
||||
)
|
||||
doc? (
|
||||
>=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
dev-python/numpydoc[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-test_message.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed download during build
|
||||
sed -e "/'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
tc-export CC
|
||||
append-cppflags -DZMQ_BUILD_DRAFT_API=1
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
esetup.py cython --force
|
||||
python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} -m pytest -v "${BUILD_DIR}/lib" || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
Binary file not shown.
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
|
||||
|
||||
# Rake tasks are not distributed in the gem.
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit virtualx ruby-fakegem
|
||||
|
||||
DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
|
||||
HOMEPAGE="https://github.com/jnicklas/capybara"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="3"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="${DEPEND} test? ( www-client/firefox )"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/rspec:3
|
||||
>=dev-ruby/launchy-2.4.0
|
||||
>=dev-ruby/selenium-webdriver-3.5:3
|
||||
dev-ruby/sinatra:2
|
||||
www-servers/puma
|
||||
)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/addressable
|
||||
>=dev-ruby/mini_mime-0.1.3
|
||||
>=dev-ruby/nokogiri-1.8:0
|
||||
>=dev-ruby/rack-1.6.0:*
|
||||
>=dev-ruby/rack-test-0.6.3:*
|
||||
>=dev-ruby/xpath-3.1:3"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid window-manager specific tests (sizes are specific for fluxbox)
|
||||
sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
|
||||
|
||||
# Avoid spec that requires unpackaged geckodriver
|
||||
sed -i -e '/describe.*register_server/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
|
||||
|
||||
# Avoid test dependency on puma server for now
|
||||
sed -i -e '/should have :puma registered/,/^ end/ s:^:#:' spec/capybara_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
virtx ${RUBY} -Ilib -S rspec-3 spec || die "Tests failed."
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST stressapptest-1.0.8.tar.gz 218485 BLAKE2B a843330dfbf16b324a13e4156c819e8b9139288bd316d560410aeb704ff4e24c47d86dd3b1d1a65d325b86110015c6e893cd38aea99d59b7c68989ba2228f376 SHA512 b5fde353d15958052219c3e505a22aa914e03a7fe96c3a0ac5025a4c730643f6fbdd5088a7cc0dd4618d4998151e2374507845110af8f2cdb43ccd4c87d48916
|
||||
DIST stressapptest-1.0.9.tar.gz 219517 BLAKE2B 58fdb60b924bedd526cf31ed47a56cf4cca288abb43054fc6de5379ec2c6ea705c92eec1ef657274949009e40e8fa82ee9cc6e1bda2ef160a894ba95519fcfd8 SHA512 2680b9a4e148a2fe0cb7758ffde7624c8874bbae1e7650bb4df6916512be5949996da16d52f530b237fe4c6122fa9bb2d35b11092d106f59d614b44eec250595
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="Stressful Application Test"
|
||||
HOMEPAGE="https://github.com/stressapptest/stressapptest"
|
||||
SRC_URI="https://github.com/stressapptest/stressapptest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="dev-libs/libaio"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
# Matches the configure & sat.cc logic.
|
||||
use debug || append-cppflags -DNDEBUG -DCHECKOPTS
|
||||
econf --disable-default-optimizations
|
||||
}
|
Binary file not shown.
@ -0,0 +1,196 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: libretro-core.eclass
|
||||
# @MAINTAINER:
|
||||
# candrews@gentoo.org
|
||||
# @AUTHOR:
|
||||
# Cecil Curry <leycec@gmail.com>
|
||||
# Craig Andrews <candrews@gentoo.org>
|
||||
# @SUPPORTED_EAPIS: 6 7
|
||||
# @BLURB: Simplify libretro core ebuilds
|
||||
# @DESCRIPTION:
|
||||
# The libretro eclass is designed to streamline the construction of
|
||||
# ebuilds for Libretro core ebuilds.
|
||||
#
|
||||
# Libretro cores can be found under https://github.com/libretro/
|
||||
#
|
||||
# They all use the same basic make based build system, are located
|
||||
# in the same github account, and do not release named or numbered
|
||||
# versions (so ebuild versions for git commits are keys).
|
||||
# This eclass covers those commonalities reducing much duplication
|
||||
# between the ebuilds.
|
||||
# @EXAMPLE:
|
||||
# @CODE
|
||||
# EAPI=7
|
||||
#
|
||||
# LIBRETRO_CORE_NAME="2048"
|
||||
# LIBRETRO_COMMIT_SHA="45655d3662e4cbcd8afb28e2ee3f5494a75888de"
|
||||
# KEYWORDS="~amd64 ~x86"
|
||||
# inherit libretro-core
|
||||
#
|
||||
# DESCRIPTION="Port of 2048 puzzle game to the libretro API"
|
||||
# LICENSE="Unlicense"
|
||||
# SLOT="0"
|
||||
# @CODE
|
||||
|
||||
if [[ -z ${_LIBRETRO_CORE_ECLASS} ]]; then
|
||||
_LIBRETRO_CORE_ECLASS=1
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
# @ECLASS-VARIABLE: LIBRETRO_CORE_NAME
|
||||
# @REQUIRED
|
||||
# @DESCRIPTION:
|
||||
# Name of this Libretro core. The libretro-core_src_install() phase function
|
||||
# will install the shared library "${S}/${LIBRETRO_CORE_NAME}_libretro.so" as a
|
||||
# Libretro core. Defaults to the name of the current package excluding the
|
||||
# "libretro-" prefix (e.g., "mgba" for the package "libretro-mgba").
|
||||
: ${LIBRETRO_CORE_NAME:=${PN#libretro-}}
|
||||
|
||||
# @ECLASS-VARIABLE: LIBRETRO_COMMIT_SHA
|
||||
# @DESCRIPTION:
|
||||
# Commit SHA used for SRC_URI will die if not set in <9999 ebuilds.
|
||||
# Needs to be set before inherit.
|
||||
|
||||
# @ECLASS-VARIABLE: LIBRETRO_REPO_NAME
|
||||
# @REQUIRED
|
||||
# @DESCRIPTION:
|
||||
# Contains the real repo name of the core formatted as "repouser/reponame".
|
||||
# Needs to be set before inherit. Otherwise defaults to "libretro/${PN}"
|
||||
: ${LIBRETRO_REPO_NAME:="libretro/libretro-${LIBRETRO_CORE_NAME}"}
|
||||
|
||||
: ${HOMEPAGE:="https://github.com/${LIBRETRO_REPO_NAME}"}
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
: ${EGIT_REPO_URI:="https://github.com/${LIBRETRO_REPO_NAME}.git"}
|
||||
inherit git-r3
|
||||
else
|
||||
[[ -z "${LIBRETRO_COMMIT_SHA}" ]] && die "LIBRETRO_COMMIT_SHA must be set before inherit."
|
||||
S="${WORKDIR}/${LIBRETRO_REPO_NAME##*/}-${LIBRETRO_COMMIT_SHA}"
|
||||
: ${SRC_URI:="https://github.com/${LIBRETRO_REPO_NAME}/archive/${LIBRETRO_COMMIT_SHA}.tar.gz -> ${P}.tar.gz"}
|
||||
fi
|
||||
inherit flag-o-matic
|
||||
|
||||
# @ECLASS-VARIABLE: LIBRETRO_CORE_LIB_FILE
|
||||
# @REQUIRED
|
||||
# @DESCRIPTION:
|
||||
# Absolute path of this Libretro core's shared library.
|
||||
: ${LIBRETRO_CORE_LIB_FILE:="${S}/${LIBRETRO_CORE_NAME}_libretro.so"}
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
6|7)
|
||||
EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install
|
||||
;;
|
||||
*)
|
||||
die "EAPI=${EAPI} is not supported" ;;
|
||||
esac
|
||||
|
||||
# @FUNCTION: libretro-core_src_unpack
|
||||
# @DESCRIPTION:
|
||||
# The libretro-core src_unpack function which is exported.
|
||||
#
|
||||
# This function retrieves the remote Libretro core info files.
|
||||
libretro-core_src_unpack() {
|
||||
# If this is a live ebuild, retrieve this core's remote repository.
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
# Add used commit SHA for version information, the above could also work.
|
||||
LIBRETRO_COMMIT_SHA=$(git -C "${WORKDIR}/${P}" rev-parse HEAD)
|
||||
# Else, unpack this core's local tarball.
|
||||
else
|
||||
default_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: libretro-core_src_prepare
|
||||
# @DESCRIPTION:
|
||||
# The libretro-core src_prepare function which is exported.
|
||||
#
|
||||
# This function prepares the source by making custom modifications.
|
||||
libretro-core_src_prepare() {
|
||||
default_src_prepare
|
||||
# Populate COMMIT for GIT_VERSION
|
||||
local custom_libretro_commit_sha="\" ${LIBRETRO_COMMIT_SHA:0:7}\""
|
||||
local makefile
|
||||
local flags_modified=0
|
||||
local shopt_saved=$(shopt -p nullglob)
|
||||
shopt -s nullglob
|
||||
for makefile in "${S}"/[Mm]akefile* "${S}"/target-libretro/[Mm]akefile*; do
|
||||
# * Convert CRLF to LF
|
||||
# * Expand *FLAGS to prevent potential self-references
|
||||
# * Where LDFLAGS directly define the link version
|
||||
# script append LDFLAGS and LIBS
|
||||
# * Where SHARED is used to provide shared linking
|
||||
# flags ensure final link command includes LDFLAGS
|
||||
# and LIBS
|
||||
# * Always use $(CFLAGS) when calling $(CC)
|
||||
# * Add short-rev to Makefile
|
||||
sed \
|
||||
-e 's/\r$//g' \
|
||||
-e "/flags.*=/s:-O[[:digit:]]:${CFLAGS}:g" \
|
||||
-e "/CFLAGS.*=/s:-O[[:digit:]]:${CFLAGS}:g" \
|
||||
-e "/.*,--version-script=.*/s:$: ${LDFLAGS} ${LIBS}:g" \
|
||||
-e "/\$(CC)/s:\(\$(SHARED)\):\1 ${LDFLAGS} ${LIBS}:" \
|
||||
-e 's:\(\$(CC)\):\1 \$(CFLAGS):g' \
|
||||
-e "s/GIT_VERSION\s.=.*$/GIT_VERSION=${custom_libretro_commit_sha}/g" \
|
||||
-i "${makefile}" || die "Failed to use custom cflags in ${makefile}"
|
||||
done
|
||||
${shopt_saved}
|
||||
export OPTFLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
# @VARIABLE: myemakeargs
|
||||
# @DEFAULT_UNSET
|
||||
# @DESCRIPTION:
|
||||
# Optional emake arguments as a bash array. Should be defined before calling
|
||||
# src_compile.
|
||||
# @CODE
|
||||
# src_compile() {
|
||||
# local myemakeargs=(
|
||||
# $(usex neon "HAVE_NEON=1" "")
|
||||
# )
|
||||
# libretro-core_src_compile
|
||||
# }
|
||||
# @CODE
|
||||
|
||||
# @FUNCTION: libretro-core_src_compile
|
||||
# @DESCRIPTION:
|
||||
# The libretro-core src_compile function which is exported.
|
||||
#
|
||||
# This function compiles the shared library for this Libretro core.
|
||||
libretro-core_src_compile() {
|
||||
# most (if not all) libretro makefiles use DEBUG=1
|
||||
# to enable additional debug features.
|
||||
emake CC=$(tc-getCC) CXX=$(tc-getCXX) \
|
||||
$(usex debug "DEBUG=1" "") "${myemakeargs[@]}" \
|
||||
$([[ -f makefile.libretro ]] && echo '-f makefile.libretro') \
|
||||
$([[ -f Makefile.libretro ]] && echo '-f Makefile.libretro')
|
||||
}
|
||||
|
||||
# @FUNCTION: libretro-core_src_install
|
||||
# @DESCRIPTION:
|
||||
# The libretro-core src_install function which is exported.
|
||||
#
|
||||
# This function installs the shared library for this Libretro core.
|
||||
libretro-core_src_install() {
|
||||
# Absolute path of the directory containing Libretro shared libraries.
|
||||
local libretro_lib_dir="/usr/$(get_libdir)/libretro"
|
||||
# If this core's shared library exists, install that.
|
||||
if [[ -f "${LIBRETRO_CORE_LIB_FILE}" ]]; then
|
||||
exeinto "${libretro_lib_dir}"
|
||||
doexe "${LIBRETRO_CORE_LIB_FILE}"
|
||||
else
|
||||
# Basename of this library.
|
||||
local lib_basename="${LIBRETRO_CORE_LIB_FILE##*/}"
|
||||
|
||||
# Absolute path to which this library was installed.
|
||||
local lib_file_target="${ED}${libretro_lib_dir}/${lib_basename}"
|
||||
|
||||
# If this library was *NOT* installed, fail.
|
||||
[[ -f "${lib_file_target}" ]] ||
|
||||
die "Libretro core shared library \"${lib_file_target}\" not installed."
|
||||
fi
|
||||
}
|
||||
|
||||
fi # end _LIBRETRO_CORE_ECLASS guard
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST libretro-bnes-0.0.1_pre20180723.tar.gz 153133 BLAKE2B d9d6dad8be84851053a1a66272963bd5ffcb5ab11fc9e8096e04e03e0d266e57cbf5fd37618e43f48f9ae0c4c08013303c17cc3cc6b3e1aec764b9e0ce594088 SHA512 f2db232a10b854badf3d130688f09c580f11da17224da127aff437b4a2c906828717539577d71713aa5a05b93effd8d17fcc2b3f6e3ff570d56639030a5be383
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_COMMIT_SHA="18384086d58fd09de3844e2c5f3b2a77b5d490dc"
|
||||
LIBRETRO_REPO_NAME="libretro/bnes-libretro"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="bNES libretro port"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
@ -0,0 +1,11 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/bnes-libretro"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="bNES libretro port"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>bNES libretro port</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/libretro-bnes</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-dosbox-0.0.1_pre20180723.tar.gz 1182680 BLAKE2B 5885053ad228f56bd2a26bcdc8c05a1b3358b019a74f1ed41c056492f9042a8ee96a3d4ec4d1f6f39e072ccae65378355d27e01c951e288fb1094d11ea172aed SHA512 b2206de1cbce3927797044d1609e569d3fb828039184d780253108b231f1fe5566ed877315626908e83acdfa2d0398ee832df01202bc7164c11dcb5119531710
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/dosbox-libretro"
|
||||
LIBRETRO_COMMIT_SHA="169d476437ec813b462a47254f24cf78473389c8"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="DOSBox libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,11 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/dosbox-libretro"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="DOSBox libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>DOSBox libretro port</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/dosbox-libretro</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-fceumm-0.0.1_pre20180723.tar.gz 392820 BLAKE2B ae06b67813cff37de136f73b208b3686dd9522dd804971b81b3acd9410929976a33c13c8e07f6ead175b1994cabd1ed937d7ca3d7c24c4c8690b74a627c082be SHA512 55526c2269b2dd77e1c860eb00c8aa75106bc585f99ce8102eccad7ccb272a517643e4076a52413281749d62afdf5af29ff1a03e2ebbb9eea36acac24c0584f8
|
@ -0,0 +1,12 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_COMMIT_SHA="67c072617b700560acbfea54f2779cb290dbf827"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="FCEUmm libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,10 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="FCEUmm libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>FCEUmm libretro port</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/libretro-fceumm</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-info-0.0.1_pre20180723.tar.gz 94991 BLAKE2B a5779b06d61a05a186b574c4f821da4211a03f8df89c5baa099ad805117d0f34c1349c9a83abce67d25c7c013961815d13961e3f52078107414175693950a10c SHA512 b4a1c6550d2b99ca637c824cdad7127e5eac245c12bc2f89202c42ca3da103f87205c6e4c3c6eddc572167ba302bfef91c4223939afd8d5a9012f43cc989176f
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Libretro info files required for libretro cores"
|
||||
HOMEPAGE="https://github.com/libretro/libretro-super"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/libretro/libretro-super.git"
|
||||
inherit git-r3
|
||||
else
|
||||
COMMIT="dfa0eaaa804552712baaff5553df3eea989fc5d5"
|
||||
SRC_URI="https://github.com/libretro/libretro-super/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/libretro-super-${COMMIT}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/libretro/info"
|
||||
doins dist/info/*.info
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Libretro info files required for libretro cores"
|
||||
HOMEPAGE="https://github.com/libretro/libretro-super"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/libretro/libretro-super.git"
|
||||
inherit git-r3
|
||||
else
|
||||
COMMIT="dfa0eaaa804552712baaff5553df3eea989fc5d5"
|
||||
SRC_URI="https://github.com/libretro/libretro-super/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/libretro-super-${COMMIT}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/libretro/info"
|
||||
doins dist/info/*.info
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>Libretro info files required for libretro cores</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/libretro-super</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-nestopia-0.0.1_pre20180723.tar.gz 1260666 BLAKE2B e9107896d92b717f7f50697ea373ecbf3a0bb12ea1a1493f7b3688652da56b8f156d295e84f3e7707d3c388fd0474fe1db0cc82e1056805e1bfa1d86ba6e2351 SHA512 dc8076f6849bd73527490f3bf933094279fd84436ee0977b0330d5d96f6e4c0446491eacc9bcc63286093f21f426aff0b8bdad2f343a32f53575b4abedcb71eb
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/nestopia"
|
||||
LIBRETRO_COMMIT_SHA="9c335527c5dfa11dfa29bc22ee4ba6efa23c8890"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
S="${WORKDIR}/${P}/libretro"
|
||||
LIBRETRO_CORE_LIB_FILE="${S}/${LIBRETRO_CORE_NAME}_libretro.so"
|
||||
|
||||
DESCRIPTION="Nestopia libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/nestopia"
|
||||
inherit libretro-core
|
||||
S="${WORKDIR}/${P}/libretro"
|
||||
LIBRETRO_CORE_LIB_FILE="${S}/${LIBRETRO_CORE_NAME}_libretro.so"
|
||||
|
||||
DESCRIPTION="Nestopia libretro port"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>Nestopia libretro port</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/nestopia</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-snes9x-0.0.1_pre20180723.tar.gz 515094 BLAKE2B 3f684a6ece8c2a09e3e8aa01d1dde99c9ebf079d38e2d165bd5c53c5c93ce637ff657253df7a2a07f3c51d5fc1a1a8ced5a5e4c6a6a78d3d410245aae7484327 SHA512 5fbc44988d244bf7483877d4fbb5799101da43dcb56196bae8d602caab43199509b63d77b573675df9e54108646b5ba52dd5f6ad6582d929367236c2ec4116b4
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/snes9x"
|
||||
LIBRETRO_COMMIT_SHA="d2aefd2f73d9f9241ede79c19598ecaa7079f82a"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
S="${S}/libretro"
|
||||
LIBRETRO_CORE_LIB_FILE="${S}/${LIBRETRO_CORE_NAME}_libretro.so"
|
||||
|
||||
DESCRIPTION="Snes9x libretro port"
|
||||
LICENSE="Snes9x GPL-2 GPL-2+ LGPL-2.1 LGPL-2.1+ ISC MIT ZLIB Info-ZIP"
|
||||
RESTRICT="bindist"
|
||||
SLOT="0"
|
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_REPO_NAME="libretro/snes9x"
|
||||
inherit libretro-core
|
||||
S="${S}/libretro"
|
||||
LIBRETRO_CORE_LIB_FILE="${S}/${LIBRETRO_CORE_NAME}_libretro.so"
|
||||
|
||||
DESCRIPTION="Snes9x libretro port"
|
||||
LICENSE="Snes9x GPL-2 GPL-2+ LGPL-2.1 LGPL-2.1+ ISC MIT ZLIB Info-ZIP"
|
||||
RESTRICT="bindist"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>Snes9x libretro port</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/snes9x</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST libretro-twentyfortyeight-0.0.1_pre20180723.tar.gz 2691529 BLAKE2B 4c399f25300c8f7a0d311dcf9187640f7965601e148617ef673a6aeafc86418347940078c9aa37d0fed0272126ba9d39688004e74147d3164fabc2060be08b8e SHA512 92fce3a19780ce8ed567a8fcf1760f612762b7d914c17d3c2484cd6c755d06bcf9873f8c4f1f8b2a61ab429320b9ae124023cbd5ffbbf8a7449b9b59cec1fd3a
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_CORE_NAME="2048"
|
||||
LIBRETRO_COMMIT_SHA="45655d3662e4cbcd8afb28e2ee3f5494a75888de"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="Port of 2048 puzzle game to the libretro API"
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
@ -0,0 +1,11 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LIBRETRO_CORE_NAME="2048"
|
||||
inherit libretro-core
|
||||
|
||||
DESCRIPTION="Port of 2048 puzzle game to the libretro API"
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>Port of 2048 puzzle game to the libretro API</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libretro/libretro-2048</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,362 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
WANT_AUTOCONF="2.1"
|
||||
MOZ_ESR=""
|
||||
MOZ_LIGHTNING_VER="6.2"
|
||||
MOZ_LIGHTNING_GDATA_VER="4.4.1"
|
||||
|
||||
# This list can be updated using scripts/get_langs.sh from the mozilla overlay
|
||||
MOZ_LANGS=(ar ast be bg br ca cs cy da de el en en-GB en-US es-AR
|
||||
es-ES et eu fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM id is it ja ko lt
|
||||
nb-NO nl nn-NO pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE tr
|
||||
uk vi zh-CN zh-TW )
|
||||
|
||||
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas
|
||||
MOZ_PV="${PV/_beta/b}"
|
||||
|
||||
# Patches
|
||||
PATCHTB="thunderbird-60.0-patches-0"
|
||||
PATCHFF="firefox-60.0-patches-02"
|
||||
|
||||
MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases"
|
||||
|
||||
# ESR releases have slightly version numbers
|
||||
if [[ ${MOZ_ESR} == 1 ]]; then
|
||||
MOZ_PV="${MOZ_PV}esr"
|
||||
fi
|
||||
MOZ_P="${PN}-${MOZ_PV}"
|
||||
|
||||
MOZCONFIG_OPTIONAL_WIFI=1
|
||||
#MOZ_GENERATE_LANGPACKS=1
|
||||
|
||||
inherit check-reqs flag-o-matic toolchain-funcs gnome2-utils mozconfig-v6.60 pax-utils xdg-utils autotools mozlinguas-v2
|
||||
|
||||
DESCRIPTION="Thunderbird Mail Client"
|
||||
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
|
||||
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
|
||||
IUSE="bindist crypt hardened lightning +minimal mozdom rust selinux"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
PATCH_URIS=( https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/{${PATCHTB},${PATCHFF}}.tar.xz )
|
||||
SRC_URI="${SRC_URI}
|
||||
${MOZ_HTTP_URI}/${MOZ_PV}/source/${MOZ_P}.source.tar.xz
|
||||
https://dev.gentoo.org/~axs/distfiles/lightning-${MOZ_LIGHTNING_VER}.tar.xz
|
||||
lightning? ( https://dev.gentoo.org/~axs/distfiles/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.tar.xz )
|
||||
${PATCH_URIS[@]}"
|
||||
|
||||
ASM_DEPEND=">=dev-lang/yasm-1.1"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-libs/nss-3.28.3
|
||||
>=dev-libs/nspr-4.13.1
|
||||
"
|
||||
|
||||
DEPEND="rust? ( dev-lang/rust )
|
||||
amd64? ( ${ASM_DEPEND}
|
||||
virtual/opengl )
|
||||
x86? ( ${ASM_DEPEND}
|
||||
virtual/opengl )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-thunderbird )
|
||||
crypt? ( >=x11-plugins/enigmail-1.9.8.3-r1 )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MOZ_P%b[0-9]*}"
|
||||
|
||||
BUILD_OBJ_DIR="${S}/tbird"
|
||||
|
||||
pkg_setup() {
|
||||
moz_pkgsetup
|
||||
|
||||
#export MOZILLA_DIR="${S}/mozilla"
|
||||
|
||||
if ! use bindist ; then
|
||||
elog "You are enabling official branding. You may not redistribute this build"
|
||||
elog "to any users on your network or the internet. Doing so puts yourself into"
|
||||
elog "a legal problem with Mozilla Foundation"
|
||||
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
|
||||
elog
|
||||
fi
|
||||
|
||||
addpredict /proc/self/oom_score_adj
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Ensure we have enough disk space to compile
|
||||
CHECKREQS_DISK_BUILD="4G"
|
||||
check-reqs_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# Unpack language packs
|
||||
mozlinguas_src_unpack
|
||||
|
||||
# this version of lightning is a .tar.xz, no xpi needed
|
||||
#xpi_unpack lightning-${MOZ_LIGHTNING_VER}.xpi
|
||||
|
||||
# this version of gdata-provider is a .tar.xz , no xpi needed
|
||||
#use lightning && xpi_unpack gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.xpi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Apply our patchset from firefox to thunderbird as well
|
||||
rm -f "${WORKDIR}"/firefox/2007_fix_nvidia_latest.patch \
|
||||
"${WORKDIR}"/firefox/2005_ffmpeg4.patch \
|
||||
|| die
|
||||
eapply "${WORKDIR}/firefox"
|
||||
|
||||
# Ensure that are plugins dir is enabled as default
|
||||
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
|
||||
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
|
||||
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
|
||||
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
|
||||
|
||||
# Don't error out when there's no files to be removed:
|
||||
sed 's@\(xargs rm\)$@\1 -f@' \
|
||||
-i "${S}"/toolkit/mozapps/installer/packager.mk || die
|
||||
|
||||
# Don't exit with error when some libs are missing which we have in
|
||||
# system.
|
||||
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
|
||||
-i "${S}"/comm/mail/installer/Makefile.in || die
|
||||
|
||||
# Shell scripts sometimes contain DOS line endings; bug 391889
|
||||
# grep -rlZ --include="*.sh" $'\r$' . |
|
||||
# while read -r -d $'\0' file ; do
|
||||
# einfo edos2unix "${file}"
|
||||
# edos2unix "${file}"
|
||||
# done
|
||||
|
||||
# Apply our Thunderbird patchset
|
||||
pushd "${S}"/comm &>/dev/null || doe
|
||||
eapply "${WORKDIR}"/thunderbird
|
||||
|
||||
# simulate old directory structure just in case it helps eapply_user
|
||||
ln -s .. mozilla || die
|
||||
# Allow user to apply any additional patches without modifing ebuild
|
||||
eapply_user
|
||||
# remove the symlink
|
||||
rm -f mozilla
|
||||
|
||||
# Confirm the version of lightning being grabbed for langpacks is the same
|
||||
# as that used in thunderbird
|
||||
local THIS_MOZ_LIGHTNING_VER=$(${PYTHON} calendar/lightning/build/makeversion.py ${PV})
|
||||
if [[ ${MOZ_LIGHTNING_VER} != ${THIS_MOZ_LIGHTNING_VER} ]]; then
|
||||
eqawarn "The version of lightning used for localization differs from the version"
|
||||
eqawarn "in thunderbird. Please update MOZ_LIGHTNING_VER in the ebuild from ${MOZ_LIGHTNING_VER}"
|
||||
eqawarn "to ${THIS_MOZ_LIGHTNING_VER}"
|
||||
fi
|
||||
|
||||
popd &>/dev/null || die
|
||||
|
||||
eautoreconf old-configure.in
|
||||
# Ensure we run eautoreconf in spidermonkey to regenerate configure
|
||||
cd "${S}"/js/src || die
|
||||
eautoconf old-configure.in
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
MEXTENSIONS="default"
|
||||
|
||||
####################################
|
||||
#
|
||||
# mozconfig, CFLAGS and CXXFLAGS setup
|
||||
#
|
||||
####################################
|
||||
|
||||
mozconfig_init
|
||||
mozconfig_config
|
||||
|
||||
# It doesn't compile on alpha without this LDFLAGS
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
# Add full relro support for hardened
|
||||
use hardened && append-ldflags "-Wl,-z,relro,-z,now"
|
||||
|
||||
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
|
||||
mozconfig_annotate '' --enable-calendar
|
||||
|
||||
# Other tb-specific settings
|
||||
mozconfig_annotate '' --with-user-appdir=.thunderbird
|
||||
|
||||
# Disabling ldap support causes build failures with 60.0b10
|
||||
#mozconfig_use_enable ldap
|
||||
mozconfig_annotate '' --enable-ldap
|
||||
if use hardened; then
|
||||
append-ldflags "-Wl,-z,relro,-z,now"
|
||||
mozconfig_use_enable hardened hardening
|
||||
fi
|
||||
|
||||
mozlinguas_mozconfig
|
||||
|
||||
# Bug #72667
|
||||
if use mozdom; then
|
||||
MEXTENSIONS="${MEXTENSIONS},inspector"
|
||||
fi
|
||||
|
||||
# Use an objdir to keep things organized.
|
||||
echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
|
||||
echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
|
||||
|
||||
# Default mozilla_five_home no longer valid option
|
||||
sed '/with-default-mozilla-five-home=/d' -i "${S}"/.mozconfig
|
||||
|
||||
# Finalize and report settings
|
||||
mozconfig_final
|
||||
|
||||
####################################
|
||||
#
|
||||
# Configure and build
|
||||
#
|
||||
####################################
|
||||
|
||||
# Disable no-print-directory
|
||||
MAKEOPTS=${MAKEOPTS/--no-print-directory/}
|
||||
|
||||
if [[ $(gcc-major-version) -lt 4 ]]; then
|
||||
append-cxxflags -fno-stack-protector
|
||||
fi
|
||||
|
||||
# workaround for funky/broken upstream configure...
|
||||
SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 \
|
||||
./mach configure || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 \
|
||||
./mach build --verbose || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
declare emid
|
||||
cd "${BUILD_OBJ_DIR}" || die
|
||||
|
||||
# Pax mark xpcshell for hardened support, only used for startupcache creation.
|
||||
pax-mark m "${BUILD_OBJ_DIR}"/dist/bin/xpcshell
|
||||
|
||||
# Copy our preference before omnijar is created.
|
||||
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \
|
||||
"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
|
||||
|| die
|
||||
|
||||
mozconfig_install_prefs \
|
||||
"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js"
|
||||
|
||||
# dev-db/sqlite does not have FTS3_TOKENIZER support.
|
||||
# gloda needs it to function, and bad crashes happen when its enabled and doesn't work
|
||||
if in_iuse system-sqlite && use system-sqlite ; then
|
||||
echo "sticky_pref(\"mailnews.database.global.indexer.enabled\", false);" \
|
||||
>>"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" || die
|
||||
fi
|
||||
|
||||
# MOZ_MAKE_FLAGS="${MAKEOPTS}" \
|
||||
# emake DESTDIR="${D}" install
|
||||
cd "${S}" || die
|
||||
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 \
|
||||
DESTDIR="${D}" ./mach install
|
||||
|
||||
# Install language packs
|
||||
mozlinguas_src_install
|
||||
|
||||
local size sizes icon_path icon
|
||||
if ! use bindist; then
|
||||
icon_path="${S}/comm/mail/branding/thunderbird"
|
||||
icon="${PN}-icon"
|
||||
|
||||
domenu "${FILESDIR}"/icon/${PN}.desktop
|
||||
else
|
||||
icon_path="${S}/comm/mail/branding/nightly"
|
||||
icon="${PN}-icon-unbranded"
|
||||
|
||||
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
|
||||
${PN}.desktop
|
||||
|
||||
sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
|
||||
"${ED}"/usr/share/applications/${PN}.desktop
|
||||
fi
|
||||
|
||||
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
|
||||
newicon "${icon_path}"/default48.png "${icon}".png
|
||||
# Install icons for menu entry
|
||||
sizes="16 22 24 32 48 256"
|
||||
for size in ${sizes}; do
|
||||
newicon -s ${size} "${icon_path}/default${size}.png" "${icon}.png"
|
||||
done
|
||||
|
||||
local emid
|
||||
# stage extra locales for lightning and install over existing
|
||||
rm -f "${ED}"/${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
|
||||
mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/bin/distribution/extensions/${emid} \
|
||||
"${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER} lightning calendar
|
||||
|
||||
emid='{e2fda1a4-762b-4020-b5ad-a41df1933103}'
|
||||
mkdir -p "${T}/${emid}" || die
|
||||
cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/bin/distribution/extensions/${emid}/* || die
|
||||
insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
|
||||
doins -r "${T}/${emid}"
|
||||
|
||||
if use lightning; then
|
||||
# move lightning out of distribution/extensions and into extensions for app-global install
|
||||
mv "${ED}"/${MOZILLA_FIVE_HOME}/{distribution,}/extensions/${emid} || die
|
||||
|
||||
# stage extra locales for gdata-provider and install app-global
|
||||
mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/gdata-provider \
|
||||
"${WORKDIR}"/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}
|
||||
emid='{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}'
|
||||
mkdir -p "${T}/${emid}" || die
|
||||
cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/gdata-provider/* || die
|
||||
insinto ${MOZILLA_FIVE_HOME}/extensions
|
||||
doins -r "${T}/${emid}"
|
||||
fi
|
||||
|
||||
# Required in order to use plugins and even run thunderbird on hardened.
|
||||
pax-mark pm "${ED}"${MOZILLA_FIVE_HOME}/{thunderbird,thunderbird-bin,plugin-container}
|
||||
|
||||
# if use minimal; then
|
||||
# rm -r "${ED}"/usr/include "${ED}"${MOZILLA_FIVE_HOME}/{idl,include,lib,sdk} || \
|
||||
# die "Failed to remove sdk and headers"
|
||||
# fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
|
||||
if use crypt; then
|
||||
elog
|
||||
elog "USE=crypt will be dropped from thunderbird with version 52.6.0 as"
|
||||
elog "x11-plugins/enigmail-1.9.8.3-r1 and above is now a fully standalone"
|
||||
elog "package. For continued enigmail support in thunderbird please add"
|
||||
elog "x11-plugins/enigmail to your @world set."
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "If you experience problems with plugins please issue the"
|
||||
elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ,"
|
||||
elog "then restart thunderbird"
|
||||
|
||||
if ! use lightning; then
|
||||
elog
|
||||
elog "If calendar fails to show up in extensions please open config editor"
|
||||
elog "and set extensions.lastAppVersion to 38.0.0 to force a reload. If this"
|
||||
elog "fails to show the calendar extension after restarting with above change"
|
||||
elog "please file a bug report."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="bNES GameClient for Kodi"
|
||||
HOMEPAGE="https://github.com/kodi-game/game.libretro.bnes"
|
||||
SRC_URI=""
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/kodi-game/game.libretro.bnes.git"
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/kodi-game/game.libretro.bnes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/game.libretro.bnes-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
~media-tv/kodi-9999
|
||||
games-emulation/libretro-bnes
|
||||
"
|
||||
RDEPEND="
|
||||
media-plugins/kodi-game-libretro
|
||||
${DEPEND}
|
||||
"
|
||||
src_prepare() {
|
||||
echo 'find_library(BNES_LIB NAMES bnes_libretro${CMAKE_SHARED_LIBRARY_SUFFIX} PATH_SUFFIXES libretro)' > "${S}/Findlibretro-bnes.cmake" || die
|
||||
default
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>bNES GameClient for Kodi</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">kodi-game/game.libretro.bnes</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="DOSBox GameClient for Kodi"
|
||||
HOMEPAGE="https://github.com/kodi-game/game.libretro.dosbox"
|
||||
SRC_URI=""
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/kodi-game/game.libretro.dosbox.git"
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/kodi-game/game.libretro.dosbox/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/game.libretro.dosbox-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
~media-tv/kodi-9999
|
||||
games-emulation/libretro-dosbox
|
||||
"
|
||||
RDEPEND="
|
||||
media-plugins/kodi-game-libretro
|
||||
${DEPEND}
|
||||
"
|
||||
src_prepare() {
|
||||
echo 'find_library(DOSBOX_LIB NAMES dosbox_libretro${CMAKE_SHARED_LIBRARY_SUFFIX} PATH_SUFFIXES libretro)' > "${S}/Findlibretro-dosbox.cmake" || die
|
||||
default
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<longdescription>DOSBox GameClient for Kodi</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">kodi-game/game.libretro.dosbox</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue