aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-02-05 19:03:30 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-02-05 19:04:20 +0900
commitda22545eeb393eeb55658e2479be1f6ffcc6ab3f (patch)
treefe572654e46733c8e52c0f74d8bcc68dbb4e639a /x11-misc/i3lock-color
parentx11-misc/betterlockscreen: drop 4.0.4, 9999 (diff)
downloadguru-da22545eeb393eeb55658e2479be1f6ffcc6ab3f.tar.gz
guru-da22545eeb393eeb55658e2479be1f6ffcc6ab3f.tar.bz2
guru-da22545eeb393eeb55658e2479be1f6ffcc6ab3f.zip
x11-misc/i3lock-color: add 2.13.5
Closes: https://bugs.gentoo.org/860849 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'x11-misc/i3lock-color')
-rw-r--r--x11-misc/i3lock-color/Manifest1
-rw-r--r--x11-misc/i3lock-color/files/i3lock-color-2.13.5-cleanup-cflags.patch11
-rw-r--r--x11-misc/i3lock-color/files/i3lock-color-2.13.5-disable-automagic.patch35
-rw-r--r--x11-misc/i3lock-color/i3lock-color-2.13.5.ebuild57
4 files changed, 104 insertions, 0 deletions
diff --git a/x11-misc/i3lock-color/Manifest b/x11-misc/i3lock-color/Manifest
index b18338899..617ffa4ea 100644
--- a/x11-misc/i3lock-color/Manifest
+++ b/x11-misc/i3lock-color/Manifest
@@ -1,2 +1,3 @@
DIST i3lock-color-2.13.2.tar.gz 214633 BLAKE2B 83e9c2d5bb8d77de92ba4bc454544b2f9490cdef1db66d4190c6972d3fda3a0fec75cb90db6606d8ea2fb664463bbfb7c176ae6cdb9bf8c44cb52ff1390c6691 SHA512 a1e79edbd8fbf78830d19599c59a7d6810c64bbb98a5fbbe5e55f64306a1283a5e73924163ebb704f4252802f15c8f0efefeb4220a1363caf30c9f27754bab3f
DIST i3lock-color-2.13.4.tar.gz 215078 BLAKE2B fa0e0ed664a50f4d0bb67196d8643df5f9592c94cfd56a3bee2a018dac38e4f27a585ed34cb400a522cdca2b1ace3f79774f5259ffce5bf39383b7e2592f72cd SHA512 67b7b558f2894f8a389e559a5b146e176d4d0410b8da2a756190691062fa60e085449bc3afa57cbbdee7d2f002f995649d123bfb9d88eaae55da3cf8f68eee02
+DIST i3lock-color-2.13.5.tar.gz 485084 BLAKE2B b55a25f746077808be262e77c5c29c6a07aa6ab34a0dc47df4f6518a9f1133f2b2787982d2dfc0c1e933c184534f1435258cb7e4c07d11dd3bfccb68dd0ff581 SHA512 db52b8800a63a9fc85ffb644b140488588427d717b075a3f0d318486cb0177858ed7a2f148bb904e56539bbf679b0fd40eaf0df895b1f578498dfb70219eb9b8
diff --git a/x11-misc/i3lock-color/files/i3lock-color-2.13.5-cleanup-cflags.patch b/x11-misc/i3lock-color/files/i3lock-color-2.13.5-cleanup-cflags.patch
new file mode 100644
index 000000000..ed63d9efa
--- /dev/null
+++ b/x11-misc/i3lock-color/files/i3lock-color-2.13.5-cleanup-cflags.patch
@@ -0,0 +1,11 @@
+Prevent passing -O2 to CFLAGS.
+--- a/configure.ac
++++ b/configure.ac
+@@ -118,7 +118,6 @@
+ AM_PROG_AR
+
+ AX_FLAGS_WARN_ALL
+-AX_APPEND_FLAG([-O2], [AM_CFLAGS])
+ AX_APPEND_FLAG([-funroll-loops], [AM_CFLAGS])
+ AX_APPEND_FLAG([-pthread], [AM_CFLAGS])
+ AX_CHECK_COMPILE_FLAG([-Wunused-value], [AX_APPEND_FLAG([-Wunused-value], [AM_CFLAGS])])
diff --git a/x11-misc/i3lock-color/files/i3lock-color-2.13.5-disable-automagic.patch b/x11-misc/i3lock-color/files/i3lock-color-2.13.5-disable-automagic.patch
new file mode 100644
index 000000000..64093df4d
--- /dev/null
+++ b/x11-misc/i3lock-color/files/i3lock-color-2.13.5-disable-automagic.patch
@@ -0,0 +1,35 @@
+Disable automagic shell completion files installation.
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -13,31 +13,6 @@
+ pamd_files = pam/i3lock
+ pamd_DATA = $(pamd_files)
+
+-if ENABLE_BASH_COMPLETION
+-bashcompletiondir = $(BASH_COMPLETION_DIR)
+-dist_bashcompletion_DATA = i3lock-bash
+-endif
+-
+-if ENABLE_ZSH_COMPLETION
+-zshcompletiondir = $(ZSH_COMPLETION_DIR)
+-dist_zshcompletion_DATA = i3lock-zsh
+-endif
+-
+-install-data-hook:
+-if ENABLE_BASH_COMPLETION
+- test -f "${BASH_COMPLETION_DIR}/i3lock-bash" && mv -f "${BASH_COMPLETION_DIR}/i3lock-bash" "${BASH_COMPLETION_DIR}/i3lock" || true
+-endif
+-if ENABLE_ZSH_COMPLETION
+- test -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" && mv -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" "${ZSH_COMPLETION_DIR}/_i3lock" || true
+-endif
+-
+-uninstall-hook:
+-if ENABLE_BASH_COMPLETION
+- rm -f ${BASH_COMPLETION_DIR}/i3lock
+-endif
+-if ENABLE_ZSH_COMPLETION
+- rm -f ${ZSH_COMPLETION_DIR}/_i3lock
+-endif
+
+
+ AM_CPPFLAGS = \
diff --git a/x11-misc/i3lock-color/i3lock-color-2.13.5.ebuild b/x11-misc/i3lock-color/i3lock-color-2.13.5.ebuild
new file mode 100644
index 000000000..a74dd1525
--- /dev/null
+++ b/x11-misc/i3lock-color/i3lock-color-2.13.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools shell-completion
+
+MY_PV="$(ver_cut 1-2).c.$(ver_cut 3)"
+
+DESCRIPTION="The world's most popular non-default computer lockscreen"
+HOMEPAGE="https://github.com/Raymo111/i3lock-color"
+SRC_URI="https://github.com/Raymo111/i3lock-color/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+DEPEND="
+ dev-libs/libev
+ media-libs/fontconfig
+ media-libs/libjpeg-turbo:=
+ sys-libs/pam
+ x11-libs/cairo[X]
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon[X]
+ x11-libs/xcb-util
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-xrm
+"
+RDEPEND="
+ ${DEPEND}
+ !!x11-misc/i3lock
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-cleanup-cflags.patch"
+ "${FILESDIR}/${P}-disable-automagic.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ default
+ newbashcomp i3lock-bash i3lock
+ newzshcomp i3lock-zsh _i3lock
+}
+
+pkg_postinst() {
+ elog "Running i3lock-color:"
+ elog " Simply invoke the 'i3lock' command. To get out of it, enter your password and press enter."
+ elog " More imformation please check https://github.com/Raymo111/i3lock-color#running-i3lock-color"
+}