summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2020-06-12 20:38:26 +0200
committerMartin Väth <martin@mvath.de>2020-06-12 20:38:26 +0200
commitca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1 (patch)
tree3990b1b9671b842c594e0f5873a549d621c13eaa /sys-block/zram-init/zram-init-10.3.ebuild
parentsys-block/zram-init: Version bump (diff)
downloadmv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.tar.gz
mv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.tar.bz2
mv-ca3c2f0f6e3ad897a69bdf41ed73a5edfa20b9f1.zip
sys-block/zram-init games-rpg/m5figur-mv: Version bump
Signed-off-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'sys-block/zram-init/zram-init-10.3.ebuild')
-rw-r--r--sys-block/zram-init/zram-init-10.3.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/sys-block/zram-init/zram-init-10.3.ebuild b/sys-block/zram-init/zram-init-10.3.ebuild
new file mode 100644
index 00000000..cbc1528c
--- /dev/null
+++ b/sys-block/zram-init/zram-init-10.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2011-2020 Martin V\"ath
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit readme.gentoo-r1 systemd
+RESTRICT="mirror" # until available on gentoo mirrors
+
+DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram"
+HOMEPAGE="https://github.com/vaeth/zram-init/"
+SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="nls split-usr"
+LINGUAS="de fr"
+for i in ${LINGUAS}; do
+ IUSE="l10n_${i} ${IUSE}"
+done
+
+BDEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=">=app-shells/push-2.0-r2
+ !<sys-apps/openrc-0.13
+ nls? ( virtual/libintl )"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="To use zram, activate it in your kernel and add it to default runlevel:
+ rc-config add zram default
+If you use systemd enable zram_swap, tmp, and/or var_tmp with systemctl.
+You might need to modify /etc/modprobe.d/zram.conf"
+
+src_compile() {
+ SHEBANG="#!${EPREFIX}$(get_usr)/bin/sh" \
+ make MODIFY_SHEBANG=$(usex prefix FALSE TRUE) \
+ GETTEXT=$(usex nls TRUE FALSE)
+}
+
+src_install() {
+ local i po mani18n
+ po=
+ mani18n=
+ for i in ${LINGUAS}; do
+ if eval use "l10n_${i}"; then
+ po=${po}${po:+\ }i18n/${i}.po
+ mani18n=${mani18n}${mani18n:+\ }${i}
+ fi
+ done
+ make DESTDIR="${D}" \
+ PREFIX=/usr BINDIR="${ED}$(get_usr)/sbin" SYSCONFDIR="${EPREFIX}/etc" \
+ OPENRC=FALSE SYSTEMD=FALSE MANPAGE=FALSE \
+ GETTEXT=$(usex nls TRUE FALSE) PO="${po}" MANI18N="${mani18n}" \
+ install
+ doinitd openrc/init.d/*
+ doconfd openrc/conf.d/*
+ systemd_dounit systemd/system/*
+ doman man/*
+ dodoc AUTHORS ChangeLog README.md
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
+
+get_usr() {
+ use split-usr || echo /usr
+}