parent
f2f9ff4c2f
commit
68a4447574
@ -0,0 +1,85 @@
|
||||
# -*-eselect-*- vim: ft=eselect
|
||||
# Copyright 2005-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU GPL version 2 or later
|
||||
|
||||
DESCRIPTION="Manage user installed plugins of logstash"
|
||||
MAINTAINER="hydrapolic@gmail.com"
|
||||
|
||||
PLUGINS="/var/lib/logstash/plugins-list.txt"
|
||||
LS_INSTALL_DIR="/opt/logstash"
|
||||
|
||||
ls_plugin_wrapper() {
|
||||
JARS_SKIP=true "${LS_INSTALL_DIR}/bin/logstash-plugin" "${1}" "${2}" || die
|
||||
}
|
||||
|
||||
### install action
|
||||
describe_install() {
|
||||
echo "Install plugin"
|
||||
}
|
||||
|
||||
describe_install_parameters() {
|
||||
echo "<plugin>"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
[[ ${#} -lt 1 ]] && die "Please specify at least one plugin"
|
||||
|
||||
local plugin
|
||||
for plugin; do
|
||||
ls_plugin_wrapper install "${plugin}"
|
||||
echo "${plugin}" >> "${PLUGINS}" || die
|
||||
done
|
||||
|
||||
sort -u "${PLUGINS}" > "${PLUGINS}.tmp" || die
|
||||
mv "${PLUGINS}.tmp" "${PLUGINS}" || die
|
||||
}
|
||||
|
||||
### list action
|
||||
describe_list() {
|
||||
echo "List user installed plugins"
|
||||
}
|
||||
|
||||
do_list() {
|
||||
if [[ -f "${PLUGINS}" ]]; then
|
||||
write_list_start "Installed plugins:"
|
||||
|
||||
local plugin
|
||||
while read -r plugin; do
|
||||
write_kv_list_entry "${plugin}"
|
||||
done < "${PLUGINS}"
|
||||
fi
|
||||
}
|
||||
|
||||
### reinstall action
|
||||
describe_reinstall() {
|
||||
echo "Reinstall plugins"
|
||||
}
|
||||
|
||||
do_reinstall() {
|
||||
if [[ -f "${PLUGINS}" ]]; then
|
||||
local plugin
|
||||
while read -r plugin; do
|
||||
ls_plugin_wrapper install "${plugin}"
|
||||
done < "${PLUGINS}"
|
||||
fi
|
||||
}
|
||||
|
||||
### uninstall action
|
||||
describe_uninstall() {
|
||||
echo "Uninstall plugin"
|
||||
}
|
||||
|
||||
describe_uninstall_parameters() {
|
||||
echo "<plugin>"
|
||||
}
|
||||
|
||||
do_uninstall() {
|
||||
if [[ -f "${PLUGINS}" ]]; then
|
||||
local plugin
|
||||
for plugin; do
|
||||
grep "^${plugin}\$" "${PLUGINS}" || write_warning_msg "Plugin ${plugin} not recorded"
|
||||
sed -i "/^${plugin}\$/d" "${PLUGINS}" || die
|
||||
ls_plugin_wrapper remove "${plugin}"
|
||||
done
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST mcollective-2.10.5.tar.gz 1510725 SHA256 7da307010c40bdd1e2104f94e6e4ee1f53bd6dfde54a0aa3950cc558a3468d8f SHA512 51cf6ee018f36ae9d223c7afe79b08ede9dee8bbc78a8d9e8d48399b0f26b264b3fedb459f82713fbabd4a015f5376e983363997e223b3a0bc0e4bec6bbd1e82 WHIRLPOOL 56bb3a954421c672cf39061ffec3425ef5d576a8e6f7e829c16747030bbeb618c57292f9a95077e0acc9de581439843b115538cb27d23208abe3d4656d702bad
|
||||
DIST mcollective-2.11.1.tar.gz 1516922 SHA256 d5e150408e61d51b3844e14c6304cf61f27243c5dc658e689bbaaee91dce6b0b SHA512 88d2511829936a5987c8ddab068f59d17f16230cb339801672238ae54ce2115e93d7271a78001176ccc203a1b70f7ee2f35992e414059f1db9cb05db210463e5 WHIRLPOOL cff40347c46464a18d6d98e3a3e2a7dab4169f5c0e1b60f08f3292cc87adcc123fc423203d664bcee1dac47a1dd44e44726702de5c2ea0ed0c5e55d8dbe0b45a
|
||||
DIST mcollective-2.11.2.tar.gz 1516590 SHA256 aa3664d5ba2d4d20e448c374c315c91d55b5bb43918a04092747a4052bc3f969 SHA512 1dc393fa1a09c5151b64b84086ef9af934feeebd2700a00cc4c84696fa2a25d90a410a373b553198f5fda6e1e36808ffb8dc38edcb15bb9e4253998aa7504439 WHIRLPOOL f808d4f9ffbf733842dd29f8e0548b90a4705f8b502dcc62509380b013d69de786204025490d4fb67d657e5c6597fb0d3ffdac2724e8dbca6347511ef50be54a
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -13,13 +13,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -1,27 +0,0 @@
|
||||
# Group which owns the shared socket
|
||||
LXD_OPTIONS+=" --group lxd"
|
||||
|
||||
|
||||
|
||||
# Enable cpu profiling into the specified file
|
||||
#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
|
||||
|
||||
# Enable memory profiling into the specified file
|
||||
#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
|
||||
|
||||
|
||||
|
||||
# Enables debug mode
|
||||
#LXD_OPTIONS+=" --debug"
|
||||
|
||||
# For debugging, print a complete stack trace every n seconds
|
||||
#LXD_OPTIONS+=" --print-goroutines-every 5"
|
||||
|
||||
# Enables verbose mode
|
||||
#LXD_OPTIONS+=" -v"
|
||||
|
||||
# Logfile to log to
|
||||
#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
|
||||
|
||||
# Enables syslog logging
|
||||
#LXD_OPTIONS+=" --syslog"
|
@ -1,46 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DAEMON=/usr/sbin/lxd
|
||||
PIDFILE=/run/lxd.pid
|
||||
|
||||
extra_commands="stopall"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use lxcfs
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lxd server"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--pidfile ${PIDFILE} \
|
||||
--exec ${DAEMON} \
|
||||
--background \
|
||||
--make-pidfile \
|
||||
-- \
|
||||
${LXD_OPTIONS}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [ $RC_GOINGDOWN = YES ] || [ $RC_REBOOT = YES ]; then
|
||||
stopall
|
||||
else
|
||||
ebegin "Stopping lxd service (but not containers)"
|
||||
start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stopall() {
|
||||
ebegin "Stopping lxd service and containers"
|
||||
if "${DAEMON}" shutdown; then
|
||||
/etc/init.d/lxd zap
|
||||
rm -f ${PIDFILE}
|
||||
fi
|
||||
eend $?
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Container hypervisor based on LXC
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lxd --group lxd
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,22 +0,0 @@
|
||||
--- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -12,19 +12,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -1,27 +0,0 @@
|
||||
# Group which owns the shared socket
|
||||
LXD_OPTIONS+=" --group lxd"
|
||||
|
||||
|
||||
|
||||
# Enable cpu profiling into the specified file
|
||||
#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
|
||||
|
||||
# Enable memory profiling into the specified file
|
||||
#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
|
||||
|
||||
|
||||
|
||||
# Enables debug mode
|
||||
#LXD_OPTIONS+=" --debug"
|
||||
|
||||
# For debugging, print a complete stack trace every n seconds
|
||||
#LXD_OPTIONS+=" --print-goroutines-every 5"
|
||||
|
||||
# Enables verbose mode
|
||||
#LXD_OPTIONS+=" -v"
|
||||
|
||||
# Logfile to log to
|
||||
#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
|
||||
|
||||
# Enables syslog logging
|
||||
#LXD_OPTIONS+=" --syslog"
|
@ -1,49 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DAEMON=/usr/sbin/lxd
|
||||
PIDFILE=/run/lxd.pid
|
||||
|
||||
extra_commands="stopall"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use lxcfs
|
||||
|
||||
# remove with 2.0 release
|
||||
need cgmanager
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lxd server"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--pidfile ${PIDFILE} \
|
||||
--exec ${DAEMON} \
|
||||
--background \
|
||||
--make-pidfile \
|
||||
-- \
|
||||
${LXD_OPTIONS}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then
|
||||
stopall
|
||||
else
|
||||
ebegin "Stopping lxd service (but not containers)"
|
||||
start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stopall() {
|
||||
ebegin "Stopping lxd service and containers"
|
||||
if "${DAEMON}" shutdown; then
|
||||
/etc/init.d/lxd zap
|
||||
rm -f ${PIDFILE}
|
||||
fi
|
||||
eend $?
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Container hypervisor based on LXC
|
||||
After=cgmanager.service
|
||||
Requires=cgmanager.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lxd --group lxd
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,217 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Fast, dense and secure container management"
|
||||
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
|
||||
EGO_PN_PARENT="github.com/lxc"
|
||||
EGO_PN="${EGO_PN_PARENT}/lxd"
|
||||
GO_FLAGS_COMMIT="460c7bb0abd6e927f2767cadc91aa6ef776a98b4"
|
||||
|
||||
# The source is repackaged using a script at:
|
||||
# https://dev.gentoo.org/~stasibear/lxd_repackage.py
|
||||
# This is necessary because go's native package management assumes
|
||||
# that a build starts with checking out many git repositories, often
|
||||
# from HEAD. This provides no way to build the same code repeatably,
|
||||
# and anyway portage requires that fetching is only done from SRC_URI.
|
||||
# The only sane alternative I've seen is in the consul ebuild, which
|
||||
# is more transparent but raises other questions.
|
||||
SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2
|
||||
https://github.com/jessevdk/go-flags/archive/${GO_FLAGS_COMMIT}.tar.gz ->
|
||||
go-flags-${GO_FLAGS_COMMIT}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PLOCALES="de el fr ja nl ru"
|
||||
IUSE="+daemon nls test"
|
||||
|
||||
# IUSE and PLOCALES must be defined before l10n inherited
|
||||
inherit bash-completion-r1 golang-build l10n linux-info systemd user vcs-snapshot
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.7.1
|
||||
dev-go/go-crypto
|
||||
dev-go/go-net
|
||||
dev-libs/protobuf
|
||||
nls? ( sys-devel/gettext )
|
||||
test? (
|
||||
app-misc/jq
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-devel/gettext
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
daemon? (
|
||||
app-arch/xz-utils
|
||||
app-emulation/lxc[seccomp]
|
||||
net-dns/dnsmasq[dhcp,ipv6]
|
||||
net-misc/rsync[xattr]
|
||||
sys-apps/iproute2[ipv6]
|
||||
sys-fs/squashfs-tools
|
||||
virtual/acl
|
||||
)
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~BRIDGE
|
||||
~DUMMY
|
||||
~IP6_NF_NAT
|
||||
~IP6_NF_TARGET_MASQUERADE
|
||||
~IPV6
|
||||
~IP_NF_NAT
|
||||
~IP_NF_TARGET_MASQUERADE
|
||||
~MACVLAN
|
||||
~NETFILTER_XT_MATCH_COMMENT
|
||||
~NET_IPGRE
|
||||
~NET_IPGRE_DEMUX
|
||||
~NET_IPIP
|
||||
~NF_NAT_MASQUERADE_IPV4
|
||||
~NF_NAT_MASQUERADE_IPV6
|
||||
~VXLAN
|
||||
"
|
||||
|
||||
ERROR_BRIDGE="BRIDGE: needed for network commands"
|
||||
ERROR_DUMMY="DUMMY: needed for network commands"
|
||||
ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
|
||||
ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_IPV6="IPV6: needed for network commands"
|
||||
ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
|
||||
ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_MACVLAN="MACVLAN: needed for network commands"
|
||||
ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
|
||||
ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
|
||||
ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
|
||||
ERROR_NET_IPIP="NET_IPIP: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
|
||||
ERROR_VXLAN="VXLAN: needed for network commands"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
|
||||
|
||||
# KNOWN ISSUES:
|
||||
# - Translations may not work. I've been unsuccessful in forcing
|
||||
# localized output. Anyway, upstream (Canonical) doesn't install the
|
||||
# message files.
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
default_src_prepare
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
|
||||
cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
|
||||
|
||||
# Warn on unhandled locale changes
|
||||
l10n_find_plocales_changes po "" .po
|
||||
|
||||
mkdir -p "${S}/src/${EGO_PN}/vendor/github.com/jessevdk"
|
||||
mv "${WORKDIR}/go-flags-${GO_FLAGS_COMMIT}" \
|
||||
"${S}/src/${EGO_PN}/vendor/github.com/jessevdk/go-flags" || \
|
||||
die "Failed to move go-flags"
|
||||
|
||||
# gopkg.in/lxc/go-lxc.v2/examples/clone.go:17: too many errors
|
||||
rm -rf "${S}/src/gopkg.in/lxc/go-lxc.v2/examples" || die
|
||||
|
||||
while read -r -d ''; do
|
||||
[[ -d ${REPLY} ]] || continue # parent moved already
|
||||
[[ ${REPLY} =~ ^${S}/src/${EGO_PN%/*}(/|$) ]] && continue
|
||||
mkdir -p "$(dirname "${S}/src/${EGO_PN}/vendor/${REPLY#${S}/src}")"
|
||||
mv "${REPLY}" "${S}/src/${EGO_PN}/vendor/${REPLY#${S}/src}" || \
|
||||
die "Failed to move ${REPLY##*/}"
|
||||
done < <(find "${S}/src" -mindepth 2 -maxdepth 3 -type d -print0)
|
||||
find "${S}/src" -maxdepth 3 -type d -empty -delete
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
golang-build_src_compile
|
||||
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
if use daemon; then
|
||||
# Build binaries
|
||||
GOPATH="${S}:${tmpgoroot}" emake
|
||||
else
|
||||
# build client tool
|
||||
GOPATH="${S}:${tmpgoroot}" emake client
|
||||
fi
|
||||
|
||||
use nls && emake build-mo
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use daemon; then
|
||||
# Go native tests should succeed
|
||||
golang-build_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Installs all src,pkg to /usr/lib/go-gentoo
|
||||
golang-build_src_install
|
||||
|
||||
cd "${S}"
|
||||
dobin bin/lxc
|
||||
if use daemon; then
|
||||
dosbin bin/lxd
|
||||
dobin bin/fuidshift
|
||||
fi
|
||||
|
||||
cd "src/${EGO_PN}"
|
||||
|
||||
if use nls; then
|
||||
for lingua in ${PLOCALES}; do
|
||||
if use linguas_${lingua}; then
|
||||
domo po/${lingua}.mo
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if use daemon; then
|
||||
newinitd "${FILESDIR}"/${P}.initd lxd
|
||||
newconfd "${FILESDIR}"/${P}.confd lxd
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${P}.service
|
||||
fi
|
||||
|
||||
newbashcomp config/bash/lxd-client lxc
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md README.md doc/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||
einfo "including a Quick Start."
|
||||
|
||||
# The messaging below only applies to daemon installs
|
||||
use daemon || return 0
|
||||
|
||||
# The control socket will be owned by (and writeable by) this group.
|
||||
enewgroup lxd
|
||||
|
||||
# Ubuntu also defines an lxd user but it appears unused (the daemon
|
||||
# must run as root)
|
||||
|
||||
einfo
|
||||
einfo "Though not strictly required, some features are enabled at run-time"
|
||||
einfo "when the relevant helper programs are detected:"
|
||||
einfo "- sys-apps/apparmor"
|
||||
einfo "- sys-fs/btrfs-progs"
|
||||
einfo "- sys-fs/lvm2"
|
||||
einfo "- sys-fs/lxcfs"
|
||||
einfo "- sys-fs/zfs"
|
||||
einfo "- sys-process/criu"
|
||||
einfo
|
||||
einfo "Since these features can't be disabled at build-time they are"
|
||||
einfo "not USE-conditional."
|
||||
einfo
|
||||
einfo "Networks with bridge.mode=fan are unsupported due to requiring"
|
||||
einfo "a patched kernel and iproute2."
|
||||
}
|
@ -1,198 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Fast, dense and secure container management"
|
||||
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
|
||||
EGO_PN_PARENT="github.com/lxc"
|
||||
EGO_PN="${EGO_PN_PARENT}/lxd"
|
||||
|
||||
# The source is repackaged using a script at:
|
||||
# https://dev.gentoo.org/~stasibear/lxd_repackage.py
|
||||
# This is necessary because go's native package management assumes
|
||||
# that a build starts with checking out many git repositories, often
|
||||
# from HEAD. This provides no way to build the same code repeatably,
|
||||
# and anyway portage requires that fetching is only done from SRC_URI.
|
||||
# The only sane alternative I've seen is in the consul ebuild, which
|
||||
# is more transparent but raises other questions.
|
||||
SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PLOCALES="de el fr ja"
|
||||
IUSE="+daemon nls test"
|
||||
|
||||
# IUSE and PLOCALES must be defined before l10n inherited
|
||||
inherit bash-completion-r1 golang-build l10n linux-info systemd user vcs-snapshot
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.7.1
|
||||
dev-go/go-crypto
|
||||
dev-go/go-net
|
||||
dev-libs/protobuf
|
||||
nls? ( sys-devel/gettext )
|
||||
test? (
|
||||
app-misc/jq
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-devel/gettext
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
daemon? (
|
||||
app-admin/cgmanager
|
||||
app-arch/xz-utils
|
||||
app-emulation/lxc[cgmanager,seccomp]
|
||||
net-dns/dnsmasq[dhcp,ipv6]
|
||||
net-misc/rsync[xattr]
|
||||
sys-apps/iproute2[ipv6]
|
||||
sys-fs/squashfs-tools
|
||||
virtual/acl
|
||||
)
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~BRIDGE
|
||||
~DUMMY
|
||||
~IP6_NF_NAT
|
||||
~IP6_NF_TARGET_MASQUERADE
|
||||
~IPV6
|
||||
~IP_NF_NAT
|
||||
~IP_NF_TARGET_MASQUERADE
|
||||
~MACVLAN
|
||||
~NETFILTER_XT_MATCH_COMMENT
|
||||
~NET_IPGRE
|
||||
~NET_IPGRE_DEMUX
|
||||
~NET_IPIP
|
||||
~NF_NAT_MASQUERADE_IPV4
|
||||
~NF_NAT_MASQUERADE_IPV6
|
||||
~VXLAN
|
||||
"
|
||||
|
||||
ERROR_BRIDGE="BRIDGE: needed for network commands"
|
||||
ERROR_DUMMY="DUMMY: needed for network commands"
|
||||
ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
|
||||
ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_IPV6="IPV6: needed for network commands"
|
||||
ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
|
||||
ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_MACVLAN="MACVLAN: needed for network commands"
|
||||
ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
|
||||
ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
|
||||
ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
|
||||
ERROR_NET_IPIP="NET_IPIP: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
|
||||
ERROR_VXLAN="VXLAN: needed for network commands"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
|
||||
|
||||
# KNOWN ISSUES:
|
||||
# - Translations may not work. I've been unsuccessful in forcing
|
||||
# localized output. Anyway, upstream (Canonical) doesn't install the
|
||||
# message files.
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
default_src_prepare
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
|
||||
cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
|
||||
|
||||
# Warn on unhandled locale changes
|
||||
l10n_find_plocales_changes po "" .po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
golang-build_src_compile
|
||||
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
if use daemon; then
|
||||
# Build binaries
|
||||
GOPATH="${S}:${tmpgoroot}" emake
|
||||
else
|
||||
# build client tool
|
||||
GOPATH="${S}:${tmpgoroot}" emake client
|
||||
fi
|
||||
|
||||
use nls && emake build-mo
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use daemon; then
|
||||
# Go native tests should succeed
|
||||
golang-build_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Installs all src,pkg to /usr/lib/go-gentoo
|
||||
golang-build_src_install
|
||||
|
||||
cd "${S}"
|
||||
dobin bin/lxc
|
||||
if use daemon; then
|
||||
dosbin bin/lxd
|
||||
dobin bin/fuidshift
|
||||
fi
|
||||
|
||||
cd "src/${EGO_PN}"
|
||||
|
||||
if use nls; then
|
||||
for lingua in ${PLOCALES}; do
|
||||
if use linguas_${lingua}; then
|
||||
domo po/${lingua}.mo
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if use daemon; then
|
||||
newinitd "${FILESDIR}"/${P}.initd lxd
|
||||
newconfd "${FILESDIR}"/${P}.confd lxd
|
||||
|
||||
systemd_dounit "${FILESDIR}"/lxd.service
|
||||
fi
|
||||
|
||||
newbashcomp config/bash/lxd-client lxc
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md README.md doc/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||
einfo "including a Quick Start."
|
||||
|
||||
# The messaging below only applies to daemon installs
|
||||
use daemon || return 0
|
||||
|
||||
# The control socket will be owned by (and writeable by) this group.
|
||||
enewgroup lxd
|
||||
|
||||
# Ubuntu also defines an lxd user but it appears unused (the daemon
|
||||
# must run as root)
|
||||
|
||||
einfo
|
||||
einfo "Though not strictly required, some features are enabled at run-time"
|
||||
einfo "when the relevant helper programs are detected:"
|
||||
einfo "- sys-apps/apparmor"
|
||||
einfo "- sys-fs/btrfs-progs"
|
||||
einfo "- sys-fs/lvm2"
|
||||
einfo "- sys-fs/lxcfs"
|
||||
einfo "- sys-fs/zfs"
|
||||
einfo "- sys-process/criu"
|
||||
einfo
|
||||
einfo "Since these features can't be disabled at build-time they are"
|
||||
einfo "not USE-conditional."
|
||||
einfo
|
||||
einfo "Networks with bridge.mode=fan are unsupported due to requiring"
|
||||
einfo "a patched kernel and iproute2."
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST vagrant-1.9.5.tar.gz 1100561 SHA256 69eb8ede3148b6f94389be5fd2d6cb2b6c79ba78cbcacdc354d2c73f12eccc2a SHA512 8d2ace3cbac5b08d3d046a254ef617fead3677e9243da47c4b5131cef783244f403e4771e05075d1f5e9308edcfd52e9a7d792f89f4f39aefc9a949c79c64697 WHIRLPOOL b5e3a8f433c5637c85834900adfc43aaec2c740424e7250da02cf3a5de6f0d553113aa3f386eb74ef5402e0205238f6024b33a55db495d8f21eef19db84b2208
|
||||
DIST vagrant-1.9.6.tar.gz 1115853 SHA256 08cde24b5def90e7674d333149ca9d9aec585bdb54ca41598e16ea91a56675bb SHA512 d8ed38a1fcffe31d974e94cf48b8dc4902a8005747dfe7311faa21ab53d838c88974c4c200dcbc0fb27fd50f2e3278e1fd21856e4afa37eaf4ef8602e0f5ca5d WHIRLPOOL cb8f1334f9db55be65fb5fd6dc670535681ed0b5457f15f86599fc2ca37fa791304665b913e5085d78012af7b7bd56c6281b78b70e4f054abb5d460cc14a1174
|
||||
DIST vagrant-1.9.7.tar.gz 1119024 SHA256 194de72442a2d08f6e04fbed8698a99d190a0e7203d35b49e80d4ddfcb71fb1b SHA512 062921070ace7ce93145981b5b768dc9dc447559fc12c52c8da323d1e3523fbff2a8e7afca0e2f751e232aae822c969b5d166b3b0f01a0744ca20c4e4e33567f WHIRLPOOL ef0331781cf6a71dca9eb485943c459a5360f55b1db45b4f23b413b848eeac1700afe3ea51b6dd2e0da1a7c1ba6ad456bd9fcb7a7b3532145e95a38fc997dd99
|
||||
|
@ -1 +1,2 @@
|
||||
DIST ibus-chewing-1.5.1-Source.tar.gz 177044 SHA256 687ce9f09fef31b0e31ad0d2f1be17f1ca0b9212af9d71812cf53d84a90f0060 SHA512 2db6def1fe8ca3bd71419a001909d285ee48ef84c2f65e14bacff9cd114676bed594f0c90217e1fdab67c995a7b05d675812e90e281371d8464722c31649c633 WHIRLPOOL da566ec63b8733e2a80890c8f045829a101da0eaea11592b44541be2e92b57a1425fa65b5bb6868879ff588e798036056473f0e78bc228b90ce40650771c02eb
|
||||
DIST ibus-chewing-1.6.1.tar.gz 111103 SHA256 3dd7911d6eaa20c3b8b9d8e4deb38e2074aa900c0956eb75946d455d27579b63 SHA512 b093db79c656433614b9f72719a2b0768a30c2fb6fa066eda1e79cc9932ce1836f7f1e5611612fb44f260fe80a9baa9e18fdc9754b285e8a5f12a87c376cbd39 WHIRLPOOL 9213f6b6e3e0c8290f09b2f8cc92de8a0f86d5d07e1a2805a01148a0c5bce471d2607a8925e848bf44107f0288798c74e127a427fe0143ea919605956778aca7
|
||||
|
@ -0,0 +1,45 @@
|
||||
--- a/test/MakerDialogBackend-test.c
|
||||
+++ b/test/MakerDialogBackend-test.c
|
||||
@@ -126,7 +126,7 @@
|
||||
void backup_key_to_g_value(const gchar * key, GType gType, GValue * value)
|
||||
{
|
||||
g_value_init(value, gType);
|
||||
- backend_command_get_key_value(key, value);
|
||||
+ mkdg_backend_read(backend, value, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
|
||||
}
|
||||
|
||||
void change_new_value_from_orig_value(GValue * newValue,
|
||||
@@ -169,7 +169,7 @@
|
||||
{
|
||||
GValue storedGValue = { 0 };
|
||||
g_value_init(&storedGValue, G_VALUE_TYPE(newValue));
|
||||
- backend_command_get_key_value(key, &storedGValue);
|
||||
+ mkdg_backend_read(backend, &storedGValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
|
||||
g_assert(mkdg_g_value_is_equal(newValue, &storedGValue));
|
||||
g_value_unset(&storedGValue);
|
||||
}
|
||||
@@ -219,7 +219,7 @@
|
||||
#define GCONF_KEY "max-chi-symbol-len"
|
||||
GValue origValue = { 0 };
|
||||
g_value_init(&origValue, G_TYPE_BOOLEAN);
|
||||
- backend_command_get_key_value(GCONF_KEY, &origValue);
|
||||
+ mkdg_backend_read(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
|
||||
|
||||
GValue newValue = { 0 };
|
||||
g_value_init(&newValue, G_TYPE_BOOLEAN);
|
||||
@@ -229,13 +229,13 @@
|
||||
|
||||
GValue storedValue = { 0 };
|
||||
g_value_init(&storedValue, G_TYPE_BOOLEAN);
|
||||
- backend_command_get_key_value(GCONF_KEY, &storedValue);
|
||||
+ mkdg_backend_read(backend, &storedValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
|
||||
g_assert(mkdg_g_value_is_equal(&newValue, &storedValue));
|
||||
|
||||
/*
|
||||
* Restore the original value
|
||||
*/
|
||||
- backend_command_set_key_value(GCONF_KEY, &origValue);
|
||||
+ mkdg_backend_write(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
|
||||
#undef GCONF_KEY
|
||||
}
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake-utils gnome2-utils virtualx
|
||||
|
||||
MY_P="${P}-Source"
|
||||
|
||||
DESCRIPTION="Chinese Chewing engine for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gconf nls"
|
||||
|
||||
RDEPEND="app-i18n/ibus
|
||||
app-i18n/libchewing
|
||||
dev-libs/glib:2
|
||||
dev-util/gob:2
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
gconf? ( gnome-base/gconf )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-test.patch )
|
||||
DOCS=( AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
|
||||
-DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
|
||||
|
||||
export GSETTINGS_BACKEND="memory"
|
||||
export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
|
||||
virtx cmake-utils_src_test
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use gconf && gnome2_gconf_savelist
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gconf && gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils
|
||||
|
||||
MY_P=${P}-Source
|
||||
|
||||
DESCRIPTION="The Chewing IMEngine for IBus Framework"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/definite/ibus-chewing/releases/download/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="x11-libs/libXtst
|
||||
>=app-i18n/ibus-1.3
|
||||
>=dev-libs/libchewing-0.3.3
|
||||
x11-libs/gtk+:2
|
||||
dev-util/gob:2"
|
||||
DEPEND="${RDEPEND}
|
||||
gnome-base/gconf
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS="AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPRJ_DOC_DIR=/usr/share/doc/${PF}
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_make all translations
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake-utils gnome2-utils virtualx
|
||||
|
||||
DESCRIPTION="Chinese Chewing engine for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gconf nls"
|
||||
|
||||
RDEPEND="app-i18n/ibus
|
||||
app-i18n/libchewing
|
||||
dev-libs/glib:2
|
||||
dev-util/gob:2
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
gconf? ( gnome-base/gconf )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/cmake-fedora
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-test.patch )
|
||||
DOCS=( AUTHORS ChangeLog README.md RELEASE-NOTES.txt USER-GUIDE )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
|
||||
-DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
|
||||
|
||||
export GSETTINGS_BACKEND="memory"
|
||||
export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
|
||||
virtx cmake-utils_src_test
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use gconf && gnome2_gconf_savelist
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gconf && gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,13 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">The Chewing engine for IBus platform. It provides Chinese input method from libchewing.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The Chewing engine for IBus. It provides a Chinese input method from
|
||||
<pkg>app-i18n/libchewing</pkg>.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">definite/ibus-chewing</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1 +1,2 @@
|
||||
DIST ibus-table-chinese-1.4.6-Source.tar.gz 7604868 SHA256 5e3422e59417e70e65cfd342cc3c0627a3b612b1405c493df0245a3841bd9386 SHA512 52a72c388ad287572ae334bb25537b6054f72ecdd641aa1c539b85a5e9a4cf97801ae38baa8ace1caabca95d845d2fb4156eb174ac7ad1c9123409749318d76d WHIRLPOOL bdfd4203fe8954bb02002bfa3868e67f9b1aebcf1a416cc281381601ac42020b98b344443889c7714ce456a171710f00b1f0c0f34f7eb42867a9da6382d7a174
|
||||
DIST ibus-table-chinese-1.8.2.tar.gz 10576111 SHA256 ef62c22ef4e8f9085fc40fcbc14c30f6dac458817df98e9f90f883a3e2080089 SHA512 30fd1c7ee8416cd62d8e26bc2646a667ac45c4579a7cb191c77e80fecccbc576c34f33ec0b5c55669c073a633298cfda1711e4b9d89a9ef8f6146acdc0167c1a WHIRLPOOL f03985faa490b227f851acd9e2ec7d125d06ce4da362d1f002cb6f6e378f876547a666bd249e144bbd0f4b1bd68fcc1e8dd257edbf74742ff9e29a2706dbc092
|
||||
|
@ -1,22 +1,24 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI="6"
|
||||
CMAKE_IN_SOURCE_BUILD="1"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Chinese input tables for ibus-table"
|
||||
HOMEPAGE="https://github.com/definite/ibus-table-chinese"
|
||||
MY_P="${P}-Source"
|
||||
SRC_URI="https://ibus.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="Chinese tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/definite/ibus-table-chinese"
|
||||
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/ibus-table-1.2.0"
|
||||
RDEPEND="app-i18n/ibus-table"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/cmake-fedora"
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
CMAKE_IN_SOURCE_BUILD="1"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Chinese tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/definite/ibus-table-chinese"
|
||||
SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-i18n/ibus-table"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/cmake-fedora"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_FEDORA_TMP_DIR="${T}"
|
||||
-DDATA_DIR="${EPREFIX}"/usr/share
|
||||
-DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST ibus-table-code-1.2.0.20100305.tar.gz 550208 SHA256 b81e85546ebe74b67f07801d3f25a420dbab936ad6832b8b7dd25fd2f33286df SHA512 20e0b1d8bcf525d2ef510ef3ba90780980c76e158b12d9be99eb73ea4abaf8fd0be119fe047a3ce87d9751365d7abaf3f4566e25fcf08eeaaace1acfa73c3de8 WHIRLPOOL e2e74f9b3d0329c28c8197055aaa5529f88c3deeeef2fc1d4eda9b6a3c1542acf72202cb67075e6c66d45b571d5d7f31a5f7fd3dd1cf1d7d93c1b6116865a449
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="The code tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://ibus.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/ibus-table-1.2.0.20090912
|
||||
!>app-i18n/ibus-table-1.3.9"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README || die
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">The package contains additional tables for Ibus-Table.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST ibus-table-cyrillic-1.2.0.20100305.tar.gz 93474 SHA256 cfe929df5c46da9ccd57efdd851ce2110f1143863a6e18b586f09319fba405b0 SHA512 420d335453def7a5a701562e22d87c20a3d22af7f42e7df3c58f4f3735e0f5d510198838a31632fedf3a34cd192a543f2466a27dabb5cec71e467dca98b6f231 WHIRLPOOL 45a6fdc87391f3aa7740be024aac83e8a61256465698efd098f3388d574159449ee542d169705dc3fe6a4696d8307b99823936995446fc412a6028d94f66fcda
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="Translit, Russian Traditional, Yawerty tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://ibus.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/ibus-table-1.2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README || die
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">ibus-table-cyrillic provides Transit, Russian Traditional, Yawerty input method on IBus-Table on IBus framework.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,13 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">The Latin tables for Ibus-Table.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1 @@
|
||||
DIST ibus-table-others-1.3.9.tar.gz 627253 SHA256 63b14a809636a32a5d000a5dd44670a60eca3a872ff1c22d72617d2f6d52e008 SHA512 4557ba981a00035226b6cbe0d97ae14df275d3e7c5c453097b85e433a524e00efeebe508621495e63d6ff9cdd590f9d54b51a143147b83e1e3748f05b03d2019 WHIRLPOOL 5419e7d6e1f1b82b59289e096942046d492c99b0657fea881fc7270f458b736fa6ba6beb0580a94393a4be3dced53668287f94ec43f62fc5366d217c190ca5f8
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
DESCRIPTION="Various tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/moebiuscurve/ibus-table-others"
|
||||
SRC_URI="https://github.com/moebiuscurve/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-i18n/ibus-table"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
ibus-table-others provides the following tables for IBus-Table:
|
||||
|
||||
* CNS11643
|
||||
* Compose
|
||||
* Emoji
|
||||
* IPA-X-SAMPA
|
||||
* LaTex
|
||||
* Mathwriter
|
||||
* RussianTraditional
|
||||
* Thai
|
||||
* Translit
|
||||
* Ua-Translit
|
||||
* Viqr
|
||||
* Yawerty
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">moebiuscurve/ibus-table-others</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST ibus-table-tv-1.2.0.20100305.tar.gz 75183 SHA256 98acc450afdfdb7b6eabb43c78dbb60dc15921b7e04deb3ba4299e1f9358c990 SHA512 5bfe114f1cfd426d11dca103a636d59603264854c8f861de8716e48efe4c3ab1a1b6c8cff6820797799513c67a67d92a98de9ba577504b55fe41b7347922112f WHIRLPOOL 0d40ea44637bbc441deb7a26713007adf2d63671191a69e7a171f7cf0ed9a0daee6e46beeea280345a9848dba6e563ac6e4a89cc017c3b2ed06d349ad28e6bbc
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="The Thai and Viqr (Vietnamese) tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://ibus.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/ibus-table-1.2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README || die
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">The Thai and Viqr (Vietnamese) tables for Ibus-Table.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST ibus-table-1.5.0.tar.gz 432844 SHA256 6ba89c70c50773d43927769a2c608f71b282afbf3538188f65b9c89ebdc1a184 SHA512 2c52da1b4d6ae8aec29e97a8a413b388912cfcfd15860ba0e65c97b139b14f8a7d4087eb196d516abe731df03a2e4904666194414242da8cf1f3f0b54696248e WHIRLPOOL cec2ad28dd8fa936738e7e2ae1ffa3c0e96a6d5c6cf88c74a98ed0900c31464ba405c6e4449977936733dc28f3c7768f22bb216fca2a583f1679a7bcb596c39d
|
||||
DIST ibus-table-1.9.18.tar.gz 585309 SHA256 d0ef094c84c47c5ae490fc0c30a6afea0e0337559f5b7042d6b07e92dd86de37 SHA512 3f28269be1987023402eb6075b8e68b3bbba3c572a94551d072281677fde5fa14f8f4186455f8f9156b252934580c7a3837555d0edb46c76f13c8b109e26aca2 WHIRLPOOL 1d960d5a73266fb86f3f76bfa1789609d38f8a356bd2405b043f6c1123a84069bc2cfc34cb7c3e90d463b34ba987bedab5b14307380f4381a29fe2f712806977
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
|
||||
PYTHON_REQ_USE="sqlite(+)"
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Tables engines for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/kaio/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="nls"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
app-i18n/ibus[python(+),${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
virtual/libiconv
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
sed -i \
|
||||
"s/python/${EPYTHON}/" \
|
||||
engine/${PN}-createdb.in \
|
||||
engine/${PN/-/-engine-}.in
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">The package contains general Table engine for IBus platform.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">ibus</remote-id>
|
||||
<remote-id type="github">ibus/ibus</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A framework for table based input methods using IBus.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">kaio/ibus-table</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST libchewing-0.3.3.tar.bz2 1798134 SHA256 72a0de12b86c4d5f6468a68d88c736227ff16fa7a915f8595ffe5a31cae95eae SHA512 24df8d4a1dab72b32bca03bb1086223248a261d522e703c662aad53cfb16fef74691623361d275b8d811d4a0e6bc2b23b044248f7d3982dc657c9872de1de005 WHIRLPOOL 12b67dc7aa3c34fefe66bed995642d021b5c2997d706b7bb73319a0c26b3f9291c771f6308c50bc1cb3e319ff8848a09bf0aec1ed713eb55706bf11cdefdb824
|
||||
DIST libchewing-0.4.0.tar.gz 3367957 SHA256 128eae0616c8b4dadaecfb8982304241e65e2eb397001144ba5ed451ec197cc2 SHA512 8ac2a50531867dd628ed0c084a30b22e24cd102671b9ce23b008fb54d049c07135a8af205186e4ed719077cef6739e230fdcbd33cab0821a9bfab5b8fb4248c7 WHIRLPOOL a7ed4841fac60d402c710a8775b74e61bdb6ed6790ce33221bce1efc9b111192251b60bedbd04654d6afb8264d784600794be402d02c04f802bbe6ba03b54984
|
||||
DIST libchewing-0.5.1.tar.bz2 3141084 SHA256 9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b SHA512 a6551661bb5e56bba59730b93b373db56af7d42f2ab4881fbfff8727689dd2604d42d2e5c0b04820df66a431dfb5fcb73cc5c9b538615da76198ee3635501c1f WHIRLPOOL 317069206b5e739539c327a071dd3be467d755b561afb2186e94c747ce291dfb4473f110023026bf78974ce53ffadde342fa74db4f608fcb9dc655004ccc7331
|
@ -1,45 +1,41 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools eutils multilib toolchain-funcs
|
||||
inherit autotools ltprune
|
||||
|
||||
DESCRIPTION="Library for Chinese Phonetic input method"
|
||||
HOMEPAGE="http://chewing.csie.net/"
|
||||
SRC_URI="https://github.com/chewing/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/${PN/lib}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ~ppc ppc64 ~x86"
|
||||
IUSE="static-libs test"
|
||||
REQUIRED_USE="test? ( static-libs )"
|
||||
|
||||
DEPEND="
|
||||
RDEPEND="dev-db/sqlite:3"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-libs/check
|
||||
sys-libs/ncurses[unicode]
|
||||
>=dev-libs/check-0.9.4
|
||||
)
|
||||
dev-db/sqlite:3
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS NEWS README.md TODO )
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--with-sqlite3 \
|
||||
--disable-gcov
|
||||
--with-sqlite3
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# test subdirectory is not enabled by default; this means that we
|
||||
# have to make it explicit.
|
||||
emake -C test check
|
||||
emake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit ltprune
|
||||
|
||||
DESCRIPTION="Library for Chinese Phonetic input method"
|
||||
HOMEPAGE="http://chewing.csie.net/"
|
||||
SRC_URI="https://github.com/${PN/lib}/${PN}/releases/download/v${PV}/${P}.tar.bz2"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="static-libs test"
|
||||
REQUIRED_USE="test? ( static-libs )"
|
||||
|
||||
RDEPEND="dev-db/sqlite:3"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-libs/check
|
||||
sys-libs/ncurses[unicode]
|
||||
)"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--with-sqlite3
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
From 6ebf5709810983dca570d9f8873293b01b4a49bc Mon Sep 17 00:00:00 2001
|
||||
From: Akira TAGOH <akira@tagoh.org>
|
||||
Date: Mon, 20 Apr 2015 10:28:29 +0900
|
||||
Subject: [PATCH] add missing sys/types.h in lt-string.h required to build musl
|
||||
libc to satisfy ssize_t. (fixes issue#12)
|
||||
|
||||
---
|
||||
liblangtag/lt-string.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/liblangtag/lt-string.h b/liblangtag/lt-string.h
|
||||
index 15724fc..c784430 100644
|
||||
--- a/liblangtag/lt-string.h
|
||||
+++ b/liblangtag/lt-string.h
|
||||
@@ -18,6 +18,7 @@
|
||||
#define __LT_STRING_H__
|
||||
|
||||
#include <liblangtag/lt-macros.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
LT_BEGIN_DECLS
|
||||
|
||||
--
|
||||
2.4.1
|
||||
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A utility to create text art tables from delimited input"
|
||||
HOMEPAGE="https://sourceforge.net/projects/tabler/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS ChangeLog README
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
From a7b82fb3d3bd3de3ce624d9e4b0da53cb9835c2d Mon Sep 17 00:00:00 2001
|
||||
From: Ashesh Vashi <ashesh.vashi@enterprisedb.com>
|
||||
Date: Mon, 31 Jul 2017 14:57:55 +0530
|
||||
Subject: [PATCH] Added support two digits version for PostgreSQL/EDB Postgres
|
||||
Advanced Server >= 10
|
||||
|
||||
---
|
||||
CMakeLists.txt | 6 +++++-
|
||||
cmake/FindPG.cmake | 6 +++---
|
||||
2 files changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8214650..29755b4 100755
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -176,7 +176,11 @@ MESSAGE(STATUS " Description : ${CPACK_PACKAGE_DESCRIPTION_SUMM
|
||||
MESSAGE(STATUS " Version : ${VERSION}")
|
||||
MESSAGE(STATUS " ")
|
||||
MESSAGE(STATUS " PostgreSQL version string : ${PG_VERSION_STRING}")
|
||||
-MESSAGE(STATUS " PostgreSQL version parts : ${PG_MAJOR_VERSION}.${PG_MINOR_VERSION}.${PG_PATCH_VERSION}")
|
||||
+IF(${PG_MAJOR_VERSION} GREATER 9)
|
||||
+ MESSAGE(STATUS " PostgreSQL version parts : ${PG_MAJOR_VERSION}")
|
||||
+ELSE()
|
||||
+ MESSAGE(STATUS " PostgreSQL version parts : ${PG_MAJOR_VERSION}.${PG_MINOR_VERSION}")
|
||||
+ENDIF(${PG_MAJOR_VERSION} GREATER 10)
|
||||
MESSAGE(STATUS " PostgreSQL path : ${PG_ROOT_DIR}")
|
||||
MESSAGE(STATUS " PostgreSQL config binary : ${PG_CONFIG_PATH}")
|
||||
MESSAGE(STATUS " PostgreSQL include path : ${PG_INCLUDE_DIRS}")
|
||||
diff --git a/cmake/FindPG.cmake b/cmake/FindPG.cmake
|
||||
index 349086c..9768771 100644
|
||||
--- a/cmake/FindPG.cmake
|
||||
+++ b/cmake/FindPG.cmake
|
||||
@@ -28,7 +28,6 @@
|
||||
# PG_VERSION_STRING - The PostgreSQL version number.
|
||||
# PG_MAJOR_VERSION - The PostgreSQL major version (x in x.y.z).
|
||||
# PG_MINOR_VERSION - The PostgreSQL minor version (y in x.y.z).
|
||||
-# PG_PATCH_VERSION - The PostgreSQL patch version (z in x.y.z).
|
||||
# PG_EXTENSION - Set to TRUE if PostgreSQL supports extensions.
|
||||
|
||||
IF(NOT PG_STATIC OR PG_STATIC STREQUAL "")
|
||||
@@ -70,8 +69,9 @@ IF(NOT _retval)
|
||||
# Split the version into its component parts.
|
||||
STRING(REGEX MATCHALL "[0-9]+" PG_VERSION_PARTS "${PG_VERSION_STRING}")
|
||||
LIST(GET PG_VERSION_PARTS 0 PG_MAJOR_VERSION)
|
||||
- LIST(GET PG_VERSION_PARTS 1 PG_MINOR_VERSION)
|
||||
- LIST(GET PG_VERSION_PARTS 2 PG_PATCH_VERSION)
|
||||
+ IF((PG_MAJOR_VERSION LESS 10))
|
||||
+ LIST(GET PG_VERSION_PARTS 1 PG_MINOR_VERSION)
|
||||
+ ENDIF((PG_MAJOR_VERSION LESS 10))
|
||||
|
||||
# Are extensions supported?
|
||||
IF((PG_MAJOR_VERSION GREATER 9) OR ((PG_MAJOR_VERSION EQUAL 9) AND (PG_MINOR_VERSION GREATER 0)))
|
@ -1,10 +0,0 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -153,7 +122,6 @@
|
||||
if test x$LIBDEBUG = x"true"; then
|
||||
AC_DEFINE(ENABLE_DEBUG, 1,
|
||||
[Define to 1 if you want native library runtime debugging code enabled])
|
||||
- CFLAGS="$CFLAGS -g"
|
||||
fi
|
||||
AC_SUBST(LIBDEBUG)
|
||||
|
@ -1,43 +0,0 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -91,38 +91,8 @@
|
||||
AM_CONDITIONAL(ENABLE_UNIT_TEST, test x$enable_check = "xyes")
|
||||
|
||||
# Checks for ncursesw
|
||||
-OLDCFLAGS=$CFLAGS
|
||||
-LIB_NAME=ncursesw
|
||||
-NCURSESW_CFLAGS=
|
||||
-NCURSESW_LIBS=
|
||||
-for p in "$HOME/include" "$prefix/include" /usr/local/include /usr/include
|
||||
-do
|
||||
- if test -f "$p/ncursesw/ncurses.h"
|
||||
- then
|
||||
- NCURSESW_CFLAGS="-I$p"
|
||||
- AC_DEFINE(HAVE_NCURSESW_NCURSES_H, 1, [ Define to 1 if you have the <ncursesw/ncurses.h> header file. ])
|
||||
- break
|
||||
- elif test -f "$p/ncurses/ncurses.h"
|
||||
- then
|
||||
- NCURSESW_CFLAGS="-I$p"
|
||||
- AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1, [ Define to 1 if you have the <ncurses/ncurses.h> header file. ])
|
||||
- break
|
||||
- fi
|
||||
-done
|
||||
-
|
||||
-for p in "$HOME/lib" "$prefix/lib" /usr/local/lib /usr/lib
|
||||
-do
|
||||
- if test -f "$p/libncursesw.so"
|
||||
- then
|
||||
- if test "$p" != x/usr/lib
|
||||
- then
|
||||
- NCURSESW_LIBS="-L$p -lncursesw"
|
||||
- else
|
||||
- NCURSESW_LIBS="-lncursesw"
|
||||
- fi
|
||||
- break
|
||||
- fi
|
||||
-done
|
||||
+PKG_CHECK_MODULES(NCURSESW,ncursesw,
|
||||
+ AC_DEFINE(HAVE_NCURSESW_NCURSES_H, 1, [ Define to 1 if you have the <ncursesw/ncurses.h> header file. ]),)
|
||||
|
||||
enable_ncursesw=yes
|
||||
if test -z "$NCURSESW_CFLAGS"; then
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Library for Chinese Phonetic input method"
|
||||
HOMEPAGE="http://chewing.csie.net/"
|
||||
SRC_URI="http://chewing.csie.net/download/libchewing/${P}.tar.bz2"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
DEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
sys-libs/ncurses[unicode]
|
||||
>=dev-libs/check-0.9.4
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PV}-cflags.patch \
|
||||
"${FILESDIR}"/${PV}-strncat-fix.patch \
|
||||
"${FILESDIR}"/${PV}-tinfo.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# test subdirectory is not enabled by default; this means that we
|
||||
# have to make it explicit.
|
||||
emake -C test check
|
||||
}
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README TODO )
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
--- a/configure.ac 2016-02-06 17:08:05.505990463 +0100
|
||||
+++ b/configure.ac 2016-02-06 17:08:42.316530268 +0100
|
||||
@@ -15,18 +15,22 @@
|
||||
AC_INIT([libixion], [ixion_version])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2 dist-xz])
|
||||
-AM_PATH_PYTHON(2.7.0)
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
AC_ARG_WITH(hash-container-compat,
|
||||
[
|
||||
--with-hash-container-compat use std::hash_foo instead of boost::unordered_foo
|
||||
],
|
||||
,with_hash_container_compat=no)
|
||||
|
||||
AC_ARG_WITH(mdds-include-path,
|
||||
AS_HELP_STRING([--with-mdds-include-path], [specify include path for mdds headers.])
|
||||
,)
|
||||
+AC_ARG_ENABLE([python],
|
||||
+ [AS_HELP_STRING([--disable-python], [Disable python bindings])],
|
||||
+ [enable_python="$enableval"],
|
||||
+ [enable_python=yes]
|
||||
+)
|
||||
|
||||
IXION_API_VERSION=ixion_api_version
|
||||
IXION_MAJOR_VERSION=ixion_major_version
|
||||
@@ -70,7 +74,11 @@
|
||||
PKG_CHECK_MODULES([MDDS],[mdds >= 0.12.0])
|
||||
|
||||
# Check for python.
|
||||
-PKG_CHECK_MODULES([PYTHON], [python >= 0.27.1])
|
||||
+AS_IF([test "x$enable_python" != "xno"], [
|
||||
+ AM_PATH_PYTHON(2.7.0)
|
||||
+ PKG_CHECK_MODULES([PYTHON], [python >= 0.27.1])
|
||||
+])
|
||||
+AM_CONDITIONAL([BUILD_PYTHON], [test "x$enable_python" != "xno"])
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -g -Os -fvisibility=hidden"
|
||||
|
||||
@@ -101,3 +109,10 @@
|
||||
src/libixion/constants.inl
|
||||
src/python/Makefile])
|
||||
AC_OUTPUT
|
||||
+
|
||||
+AC_MSG_NOTICE([
|
||||
+==============================================================================
|
||||
+Build configuration:
|
||||
+ python: $enable_python
|
||||
+==============================================================================
|
||||
+])
|
||||
--- a/src/python/Makefile.am 2016-02-06 17:08:12.138907540 +0100
|
||||
+++ b/src/python/Makefile.am 2016-02-06 17:08:38.034583800 +0100
|
||||
@@ -1,3 +1,5 @@
|
||||
+if BUILD_PYTHON
|
||||
+
|
||||
pyexec_LTLIBRARIES = ixion.la
|
||||
ixion_la_SOURCES = \
|
||||
document.hpp \
|
||||
@@ -16,3 +18,5 @@
|
||||
|
||||
AM_TESTS_ENVIRONMENT = PYTHONPATH=.libs$${PYTHONPATH:+:$${PYTHONPATH}}; export PYTHONPATH;
|
||||
TESTS = ../../test/ixion-python-test.py
|
||||
+
|
||||
+endif
|
@ -1,18 +0,0 @@
|
||||
commit ceddf45ed98dd0b65b510a284d373630c7642587
|
||||
Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
|
||||
Date: Sun May 31 11:55:08 2015 +0200
|
||||
|
||||
src/Makefile.am: Fix typo
|
||||
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index ee9a1cc..b28c610 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -28,6 +28,6 @@ ixion_sorter_SOURCES = \
|
||||
ixion_sorter_LDADD = libixion/libixion-@IXION_API_VERSION@.la \
|
||||
$(BOOST_THREAD_LIBS) $(BOOST_PROGRAM_OPTIONS_LIBS)
|
||||
|
||||
-AM_TESTS_ENVIRONMENT = PATH=.libs$${PATH:+:$${PATH}}; epxort PATH; \
|
||||
+AM_TESTS_ENVIRONMENT = PATH=.libs$${PATH:+:$${PATH}}; export PATH; \
|
||||
LD_LIBRARY_PATH=libixion/.libs$${LD_LIBRARY_PATH:+:$${LD_LIBRARY_PATH}}; export LD_LIBRARY_PATH;
|
||||
TESTS = ../test/ixion-parser-test.sh
|
@ -1,2 +1,3 @@
|
||||
DIST pcre2-10.22.tar.bz2 1470620 SHA256 b2b44619f4ac6c50ad74c2865fd56807571392496fae1c9ad7a70993d018f416 SHA512 dcf70b5e5b73f29188a56e4d9efb9afdf2b9ebe50e13a7640b80f543851235a289e476e1f517f49fac9628b456268bcdaf2b492237bc879ddff36f84ef4f32ea WHIRLPOOL 154ee1c4d2445878c2d2fd1eafa96584d8c943e9e545937b37d4c1fb12ba847938647184723d429244bf5aa989ba335cfbf74fadb5d38227862762bd34166232
|
||||
DIST pcre2-10.23.tar.bz2 1515314 SHA256 dfc79b918771f02d33968bd34a749ad7487fa1014aeb787fad29dd392b78c56e SHA512 3e5910bd2405cc35934d91e4be760abe4f2e900202a20b6ba74adb7a3acb2b74b3bf9b0e97e8de10f8e8534133e0722e0bf0f5fb40d6c2c4520d1ed61749d456 WHIRLPOOL 8db3deb22c26688607e1dc4b52229c64f8bcbb80908155ff9bd58b690a239984b6f5d1aff0cdc70efa3abf3ee899e22ea6e3a502437af424cb92d345133889a6
|
||||
DIST pcre2-10.30.tar.bz2 1583543 SHA256 90bd41c605d30e3745771eb81928d779f158081a51b2f314bbcc1f73de5773db SHA512 f247a9f917c75920793b9919a45bb1426d126246e7a5d04e39d9407e44b5781f894a90cd3d232b385436b2f22be391335ab782664dd3a28c79058a2fcc74dc3e WHIRLPOOL 4491d5ea682ee90dad91f5b1a3dccf482c17768ea5de3c5cca2fa2b56ba97180b746242e552fbe240b154f98eac5b11da466b86d34e9bfe7c7a202d4c976172f
|
||||
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic libtool ltprune multilib-minimal toolchain-funcs
|
||||
|
||||
DESCRIPTION="Perl-compatible regular expression library"
|
||||
HOMEPAGE="http://www.pcre.org/"
|
||||
MY_P="pcre2-${PV/_rc/-RC}"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Only the final releases are available here.
|
||||
SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
|
||||
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
|
||||
else
|
||||
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
|
||||
REQUIRED_USE="?? ( libedit readline )"
|
||||
|
||||
RDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
libedit? ( dev-libs/libedit )
|
||||
readline? ( sys-libs/readline:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pcre2-config
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-pcre2-8
|
||||
--enable-shared
|
||||
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
|
||||
--with-match-limit-depth=$(usex recursion-limit 8192 MATCH_LIMIT)
|
||||
$(multilib_native_use_enable bzip2 pcre2grep-libbz2)
|
||||
$(multilib_native_use_enable libedit pcre2test-libedit)
|
||||
$(multilib_native_use_enable readline pcre2test-libreadline)
|
||||
$(multilib_native_use_enable zlib pcre2grep-libz)
|
||||
$(use_enable jit)
|
||||
$(use_enable jit pcre2grep-jit)
|
||||
$(use_enable pcre16 pcre2-16)
|
||||
$(use_enable pcre32 pcre2-32)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable unicode)
|
||||
)
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
$(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
|
||||
install
|
||||
multilib_is_native_abi && gen_usr_ldscript -a pcre2-posix
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=${PN/-/_}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Test vectors for the cryptography package"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/cryptography-vectors/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Library providing cryptographic recipes and primitives"
|
||||
HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="libressl test"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist(-)] )
|
||||
libressl? ( dev-libs/libressl )
|
||||
$(python_gen_cond_dep '>=dev-python/cffi-1.7:=[${PYTHON_USEDEP}]' 'python*')
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 pypy{,3})
|
||||
>=dev-python/idna-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/asn1crypto-0.21.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
virtual/python-ipaddress[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-1.0[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1-modules[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-2.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
|
||||
|
||||
python_test() {
|
||||
py.test -v -v -x || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST dbusmock-0.16.7.tar.gz 70544 SHA256 2d2ea892fa4633c3ec6ac1e912120ec493047a5c6522849b7d1c95ad755bce75 SHA512 749728b966b1e067a0a8bd61ee64c1c7ff22751ccb48e15096d041e78c6e779d787160ee191e90daa3177b92c0ee45c66af74b2dd4e4bcb570892b431ec13467 WHIRLPOOL 921c47fb0b86a6a3368c3b37c27f30b75edacefb46f1a726e39f35eb7b1ea7d0f78c3a7e04b218016c558578625ff28188bfece7cbc7aa06405effe4ab614f92
|
||||
DIST dbusmock-0.16.9.tar.gz 71014 SHA256 892b770a7f6c800fd6c0a9d102ef085a9371cc4eaed95dabbd740913dc08dd9b SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54 WHIRLPOOL 192d522a79b365630d0ef2069b5cf1cdae3ddb7896ad9db590ff8e7a180d44ac101ed123c035c272c27cc96cb33bbed1a9e00bf08ab0e248554f3ed374ead1ee
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 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="xml(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="python-${PN}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DESCRIPTION="Easily create mock objects on D-Bus for software testing"
|
||||
HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/0.16.9-disable-style-tests.patch
|
||||
"${FILESDIR}"/0.16.9-replace-dbus-launch.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die "tests fail under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( NEWS README.rst )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
These tests are bound to fail dependending on QA tools updates
|
||||
|
||||
https://github.com/martinpitt/python-dbusmock/issues/28
|
||||
|
||||
--- a/tests/test_code.py 2017-08-16 09:20:43.848503995 +0200
|
||||
+++ b/tests/test_code.py 2017-08-16 09:20:54.410177037 +0200
|
||||
@@ -21,6 +21,7 @@
|
||||
pycodestyle = None
|
||||
|
||||
|
||||
+@unittest.skip('style tests')
|
||||
class StaticCodeTests(unittest.TestCase):
|
||||
@unittest.skipIf(subprocess.call(['which', 'pyflakes'], stdout=subprocess.PIPE) != 0,
|
||||
'pyflakes not installed')
|
@ -0,0 +1,76 @@
|
||||
From 9470c54a2836795974e83e55ea859e4653b20b37 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Pitt <martin@piware.de>
|
||||
Date: Mon, 19 Jun 2017 16:31:28 +0200
|
||||
Subject: [PATCH] Call dbus-daemon directly instead of dbus-launch
|
||||
|
||||
dbus-launch is X11 specific and being deprecated.
|
||||
|
||||
Adjust documentation to use dbus-run-session instead.
|
||||
|
||||
https://bugs.debian.org/836053
|
||||
---
|
||||
NEWS | 4 ++++
|
||||
README.rst | 6 +++---
|
||||
dbusmock/testcase.py | 18 ++++++++++--------
|
||||
3 files changed, 17 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/NEWS b/NEWS
|
||||
index c1250ea..181a4df 100644
|
||||
--- a/NEWS
|
||||
+++ b/NEWS
|
||||
@@ -1,3 +1,7 @@
|
||||
+0.17 (UNRELEASED)
|
||||
+-----------------
|
||||
+ - Call dbus-daemon directly instead of dbus-launch. (Debian #836053)
|
||||
+
|
||||
0.16.9 (2017-06-19)
|
||||
-------------------
|
||||
- NetworkManager template: Fix type of 'State' property in AddActiveConnection()
|
||||
diff --git a/README.rst b/README.rst
|
||||
index 3dc4552..310e1ac 100644
|
||||
--- a/README.rst
|
||||
+++ b/README.rst
|
||||
@@ -118,9 +118,9 @@ Let's walk through:
|
||||
Simple example from shell
|
||||
-------------------------
|
||||
|
||||
-We use the actual session bus for this example. You can use ``dbus-launch`` to
|
||||
-start a private one as well if you want, but that is not part of the actual
|
||||
-mocking.
|
||||
+We use the actual session bus for this example. You can use
|
||||
+``dbus-run-session`` to start a private one as well if you want, but that is
|
||||
+not part of the actual mocking.
|
||||
|
||||
So let's start a mock at the D-Bus name ``com.example.Foo`` with an initial
|
||||
"main" object on path /, with the main D-Bus interface
|
||||
diff --git a/dbusmock/testcase.py b/dbusmock/testcase.py
|
||||
index 825c61f..49787e2 100644
|
||||
--- a/dbusmock/testcase.py
|
||||
+++ b/dbusmock/testcase.py
|
||||
@@ -97,16 +97,18 @@ def start_dbus(klass, conf=None):
|
||||
Normally you do not need to call this directly. Use start_system_bus()
|
||||
and start_session_bus() instead.
|
||||
'''
|
||||
- argv = ['dbus-launch']
|
||||
+ argv = ['dbus-daemon', '--fork', '--print-address=1', '--print-pid=1']
|
||||
if conf:
|
||||
argv.append('--config-file=' + conf)
|
||||
- out = subprocess.check_output(argv, universal_newlines=True)
|
||||
- variables = {}
|
||||
- for line in out.splitlines():
|
||||
- (k, v) = line.split('=', 1)
|
||||
- variables[k] = v
|
||||
- return (int(variables['DBUS_SESSION_BUS_PID']),
|
||||
- variables['DBUS_SESSION_BUS_ADDRESS'])
|
||||
+ else:
|
||||
+ argv.append('--session')
|
||||
+ lines = subprocess.check_output(argv, universal_newlines=True).strip().splitlines()
|
||||
+ assert len(lines) == 2, 'expected exactly 2 lines of output from dbus-daemon'
|
||||
+ # usually the first line is the address, but be lenient and accept any order
|
||||
+ try:
|
||||
+ return (int(lines[1]), lines[0])
|
||||
+ except ValueError:
|
||||
+ return (int(lines[0]), lines[1])
|
||||
|
||||
@classmethod
|
||||
def stop_dbus(klass, pid):
|
@ -1,2 +1,2 @@
|
||||
DIST python-slip-0.6.0.tar.bz2 24930 SHA256 f47361ec52b608309b83c71905e692b6b363eaf3b8a7afdeff866cd94463ad5c SHA512 5787995521cce568d6569c15270bee63d9c42e85e21e652c9042c09d62d2c99bbee0b3efcaaa187e3f78d0d90a69ba4d9846b1182f0f366a6c75cb822b412164 WHIRLPOOL 30ede47ceafe7eef0c441504061cbfa1cddac80afb732030a8e27765f0a30b4b2b176061fe19d57001f39ed764b298f8bfc9d2e0d01b878ac0a0a7ae5c623a04
|
||||
DIST python-slip-0.6.1.tar.bz2 25000 SHA256 bc897f1ab6f5b4989f85548799aaeb84fde67bbba18e40341bfe1d7885c2fd9a SHA512 d7d79b8ee4468d3a3b5e2ff31dcc8af30f70591ba42f74af9787e5c883a137e85c39a6ffc7c36cd2383840aa4ca09cd1ca3d9e40fc4d266b37689a85f084a9ab WHIRLPOOL 95595c7cc45bd403fa8ed1a5a36e32bbcce7aa621ff2d86503487174279e996e3839e7c3033a771274c944f46591f819a0ab1981e1301c4a13757f4787c2586b
|
||||
DIST python-slip-0.6.5.tar.bz2 25996 SHA256 c726c086f0dd93a0ac7a0176f383a12af91b6657b78a301e3f5b25d9f8d4d10b SHA512 84dfd4d74602e996797261aa4021fc1579a6aba554d2b3d497c0a7b8618366a9c0a6f12051b00c5653845dda923eedb58afdded37f2a1f31b5b0ce1a0532ccff WHIRLPOOL 54f9d0663cbfada42ab1fee2372919dae7960326719bced4da2e31167a9a92894ec7a0e9ce439cc659fc7511c22d47fe25a6ccf83ffe84ff830b55ca153bdda0
|
||||
|
@ -0,0 +1,93 @@
|
||||
From 66480a1ee0222d9944f58af945959183b23c26f6 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Wed, 16 Aug 2017 10:49:43 +0200
|
||||
Subject: [PATCH] Disable selinux
|
||||
|
||||
Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
---
|
||||
setup.py.in | 2 +-
|
||||
slip/util/files.py | 27 ++++++++++++++-------------
|
||||
2 files changed, 15 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/setup.py.in b/setup.py.in
|
||||
index 9e7644b..fb276a7 100644
|
||||
--- a/setup.py.in
|
||||
+++ b/setup.py.in
|
||||
@@ -8,7 +8,7 @@ setup(name="slip", version="@VERSION@",
|
||||
py_modules=["slip.__init__", "slip.util.__init__",
|
||||
"slip.util.hookable", "slip.util.files",
|
||||
"slip._wrappers.__init__", "slip._wrappers._glib"],
|
||||
- requires=["selinux"])
|
||||
+ requires=[])
|
||||
|
||||
setup(name="slip.dbus", version="@VERSION@",
|
||||
py_modules=["slip.dbus.__init__", "slip.dbus.bus",
|
||||
diff --git a/slip/util/files.py b/slip/util/files.py
|
||||
index 98faa7c..a0a3768 100644
|
||||
--- a/slip/util/files.py
|
||||
+++ b/slip/util/files.py
|
||||
@@ -33,6 +33,7 @@ __all__ = ["issamefile", "linkfile", "copyfile", "linkorcopyfile",
|
||||
|
||||
import os
|
||||
import selinux
|
||||
+# import selinux
|
||||
import tempfile
|
||||
import errno
|
||||
import stat
|
||||
@@ -140,8 +141,8 @@ def copyfile(srcpath, dstpath, copy_mode_from_dst=True, run_restorecon=True):
|
||||
|
||||
os.rename(dsttmpfile.name, dstpath)
|
||||
|
||||
- if run_restorecon and selinux.is_selinux_enabled() > 0:
|
||||
- selinux.restorecon(dstpath)
|
||||
+# if run_restorecon and selinux.is_selinux_enabled() > 0:
|
||||
+# selinux.restorecon(dstpath)
|
||||
|
||||
|
||||
def linkorcopyfile(
|
||||
@@ -247,8 +248,8 @@ def overwrite_safely(
|
||||
|
||||
exists = os.path.exists(path)
|
||||
|
||||
- if preserve_context and selinux.is_selinux_enabled() <= 0:
|
||||
- preserve_context = False
|
||||
+# if preserve_context and selinux.is_selinux_enabled() <= 0:
|
||||
+# preserve_context = False
|
||||
|
||||
try:
|
||||
fd, tmpname = tempfile.mkstemp(prefix=base + os.path.extsep,
|
||||
@@ -263,10 +264,10 @@ def overwrite_safely(
|
||||
if preserve_mode:
|
||||
os.fchmod(fd, stat.S_IMODE(s.st_mode))
|
||||
|
||||
- if preserve_context:
|
||||
- ret, ctx = selinux.getfilecon(path)
|
||||
- if ret < 0:
|
||||
- raise RuntimeError("getfilecon(%r) failed" % path)
|
||||
+# if preserve_context:
|
||||
+# ret, ctx = selinux.getfilecon(path)
|
||||
+# if ret < 0:
|
||||
+# raise RuntimeError("getfilecon(%r) failed" % path)
|
||||
|
||||
f = os.fdopen(fd, "w")
|
||||
fd = None
|
||||
@@ -278,11 +279,11 @@ def overwrite_safely(
|
||||
|
||||
os.rename(tmpname, path)
|
||||
|
||||
- if preserve_context:
|
||||
- if exists:
|
||||
- selinux.setfilecon(path, ctx)
|
||||
- else:
|
||||
- selinux.restorecon(path)
|
||||
+# if preserve_context:
|
||||
+# if exists:
|
||||
+# selinux.setfilecon(path, ctx)
|
||||
+# else:
|
||||
+# selinux.restorecon(path)
|
||||
|
||||
finally:
|
||||
if f:
|
||||
--
|
||||
2.14.0
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="default version.txt"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Tool that creates new Ruby projects from a code skeleton"
|
||||
HOMEPAGE="https://github.com/TwP/bones"
|
||||
|
||||
IUSE="test"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/builder
|
||||
>=dev-ruby/loquacious-1.9.1
|
||||
>=dev-ruby/little-plugger-1.1.3
|
||||
>=dev-ruby/rake-12"
|
||||
|
||||
all_ruby_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.8.1-builder.patch
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue