diff options
Diffstat (limited to 'sys-apps/kbd')
-rw-r--r-- | sys-apps/kbd/Manifest | 9 | ||||
-rw-r--r-- | sys-apps/kbd/files/kbd-2.0.4-vlock_configure_switch.patch | 25 | ||||
-rw-r--r-- | sys-apps/kbd/files/kbd-2.2.0-cflags.patch | 33 | ||||
-rw-r--r-- | sys-apps/kbd/kbd-2.0.4-r1.ebuild (renamed from sys-apps/kbd/kbd-2.1.0.ebuild) | 14 | ||||
-rw-r--r-- | sys-apps/kbd/kbd-2.2.0-r1.ebuild | 76 | ||||
-rw-r--r-- | sys-apps/kbd/kbd-9999.ebuild | 6 |
6 files changed, 155 insertions, 8 deletions
diff --git a/sys-apps/kbd/Manifest b/sys-apps/kbd/Manifest index 405b8a5548d2..bd319aa576ef 100644 --- a/sys-apps/kbd/Manifest +++ b/sys-apps/kbd/Manifest @@ -1,6 +1,9 @@ +AUX kbd-2.0.4-vlock_configure_switch.patch 848 BLAKE2B 1e1cb785b75b0e9dbd9c4893081b7ccef7ce09d18835bc6644543f79b1e1bdca3619863c37f14adcabf07814680769caaac57ed24026440df50e14dc2f2fbba0 SHA512 46cba6402489db0ef5c7fb06ea8f2c91724699294e6ce7b2b67dbfa3ed696d8917355ee6999e897be092911570d206ce9127adc06e5159199a23f79ce79e6b81 +AUX kbd-2.2.0-cflags.patch 990 BLAKE2B 2512eccfd4e2eea843e176951f6e6fa1f74d2fd28443ba7e340ee6306dcc6a429c6e939684ed3058213681476342a428e06384739a8e51f08c549058b0c8b686 SHA512 14645a299e22afd38d2b118b9f1029280392880ce56c2b65a8e61bcfebd818d5e3b61f9a701d3b362b4f1d31bee4db2d23179b6e31e235e6e82b05b1e17d22b1 DIST kbd-2.0.4.tar.xz 1031864 BLAKE2B 10c2bded89befda1f1d7ab199796e082a4e3b2333cf29a2abbbe843191dce41a7289d5bc3b7e55d8b25c7144ae4b4977e4321b38896917d0083af8ddd4924a3e SHA512 5e264b3695b0af0bc85e0a4fa2c43e13648d8ea82102f3b051c28da2abfc52977577c470bce48f30cec9b0d215297e48c9b05e00561c990e3770fb68f6544e0f -DIST kbd-2.1.0.tar.xz 1114896 BLAKE2B 273b1149ac1ba6220d786fa6fedf22432937c8e7a8c3317eecc11d4533a72f6c29566dda75be2fb0fae3c0f02d63a10e6207cbe96719051639fc661c859e1040 SHA512 bfb3e7c4ab2973bf68ee6ce8fd90b4e51cff5a466c04b375c1a6d9418319cf041a593edb4915637cd0c3b472614cd39d8184837d14e9177f163817da4e769849 +DIST kbd-2.2.0.tar.xz 1115220 BLAKE2B d4218f3a8f9212d16e8a14011f0e136f6aebd18f13f8d5da2bd63296e0aa857fc5e7fe927200345fca3b723bc879f87511b02c152824a73ae5743cc8175991e6 SHA512 5f407c20739487e423e8390e429d30838a1a69a0a50db083803ce56da919e25ce480b63fd1bcfac9eb362095f17e575783b09eaa55e26b442bfa3ed838e04f13 +EBUILD kbd-2.0.4-r1.ebuild 1512 BLAKE2B ea78c2739f01dac41344870001a6dd34469f3311bfae0a2f7ad56b6e3c93ab5cd71fef852cd27753fb5677b671b009d4ac762027c5dd1664eb127702df7d88eb SHA512 21152c3daf9cc848f8c63aef17789da0371b55293e79b57243a119543334383c2541556efea6b864fcec60c0d96c022cd1f41e03648119a8504d165e88ccb448 EBUILD kbd-2.0.4.ebuild 1346 BLAKE2B 954e13a347196bcc161977c95e10a090b95242167cb7d575ae434a3f4be4f1e92d3053402a49691252c8bc66db1e59659616f5823490c598b75ac4ddba9d4326 SHA512 7e533b92655479e4e56ad56cf029b8f983dc83fc525952d7990f8c9fc868f783e3340925ea78633a3dd2673ebba60eff784fe495da128f3ef9cdbf9257749fb6 -EBUILD kbd-2.1.0.ebuild 1380 BLAKE2B dc193a0162a7fcac44a0a3bc395ddbbefcf6e7f2cbc967329ff1b815b835d6401dcc2a2f154dea054eec8b3e70d978b37292145ae6732b7e0a7436f9663a2a87 SHA512 b5a752de3f7948011127508568e782e1cb4d9b03b214ed5a9836af54dc687e8ebb16eda34f99a96e97fc73033070a499d00a28d0791191559b25aaac9cef6375 -EBUILD kbd-9999.ebuild 1380 BLAKE2B dc193a0162a7fcac44a0a3bc395ddbbefcf6e7f2cbc967329ff1b815b835d6401dcc2a2f154dea054eec8b3e70d978b37292145ae6732b7e0a7436f9663a2a87 SHA512 b5a752de3f7948011127508568e782e1cb4d9b03b214ed5a9836af54dc687e8ebb16eda34f99a96e97fc73033070a499d00a28d0791191559b25aaac9cef6375 +EBUILD kbd-2.2.0-r1.ebuild 1529 BLAKE2B 70a1c129e03344b3f6e5a2b87b1926715e3708468eb2568fe0f2d2f8392638f497e97b08f4fff24a24f327dabce4e967cc17824071a1aa1a801041169dfd5c20 SHA512 66c030906b545cfa0e4289b4eb411aea3f2e292ce73146248067ae93babee6f3b6c8613a062264809a700ea23fd0da7a6a7f1e141fe3ffffea0b21b9cf9a89e5 +EBUILD kbd-9999.ebuild 1496 BLAKE2B 328079e258ec023c510049ebe14200fb5ff09be766ff05d4621d1adbd5af21af5c9f24e9eb1ef5ce8a8d2b8928fee0be0673de5e7ec9c65cfd85cd04e3050f9f SHA512 43cda0f03636fbedb4494564f231f39fd87188d74102697951803c193212c83eff24051cf1716a7e9f8ae11c0df85c661c7eba3183f48f6725bed3287c436995 MISC metadata.xml 321 BLAKE2B 608f4a02a31f6c1590d7c237516a00cefa06f641febb7b479b7b0a276e9b59c0b7a88bbc6f4bdaca942ae83b85ebad6c6e84097916315eb985ebc2d98a70b171 SHA512 f00b80d88f4647f210c28f95f8dc81fc8ff3bcbe74e6429e9d5dd92e57588297aafee968b8a3cad2db3b2010fd9ebc400975ca59ffcd62370afa799745dda641 diff --git a/sys-apps/kbd/files/kbd-2.0.4-vlock_configure_switch.patch b/sys-apps/kbd/files/kbd-2.0.4-vlock_configure_switch.patch new file mode 100644 index 000000000000..c3f5b660cbd4 --- /dev/null +++ b/sys-apps/kbd/files/kbd-2.0.4-vlock_configure_switch.patch @@ -0,0 +1,25 @@ +From f7f357ef079b6d185f340e716d7c72a98d82bad0 Mon Sep 17 00:00:00 2001 +From: Garry Filakhtov <filakhtov@gmail.com> +Date: Fri, 20 Jul 2018 15:58:56 +0200 +Subject: [PATCH] configure.ac: Fix logic of vlock configure switch + +Downstream bug report: https://bugs.gentoo.org/661650 + +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 87eb63c..07098cf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -119,7 +119,7 @@ AM_CONDITIONAL(BUILD_LIBKEYMAP, test "$BUILD_LIBKEYMAP" = "yes") + + AC_ARG_ENABLE(vlock, + AS_HELP_STRING(--disable-vlock, [do not build vlock]), +- [VLOCK_PROG=no],[VLOCK_PROG=yes]) ++ [VLOCK_PROG=$enableval],[VLOCK_PROG=yes]) + AM_CONDITIONAL(VLOCK, test "$VLOCK_PROG" = "yes") + + if test "$VLOCK_PROG" = "yes"; then diff --git a/sys-apps/kbd/files/kbd-2.2.0-cflags.patch b/sys-apps/kbd/files/kbd-2.2.0-cflags.patch new file mode 100644 index 000000000000..86c0f45074ac --- /dev/null +++ b/sys-apps/kbd/files/kbd-2.2.0-cflags.patch @@ -0,0 +1,33 @@ +From 3b4f3ffbc9fedff83a0618f3dd3c6aafced3e72a Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Wed, 31 Jul 2019 18:07:33 +0200 +Subject: [PATCH] configure.ac: respect user CFLAGS + +Do not override user CFLAGS. Do not unconditionally add -g to CFLAGS. + +Gentoo-bug: https://bugs.gentoo.org/691142 +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 6bf6401..0f5ed2f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -72,9 +72,9 @@ if test "$enable_code_coverage" = yes; then + fi + + case "$GCC,$ac_cv_prog_cc_g" in +- yes,yes) CFLAGS="-g $CC_O_LEVEL $FORTIFY_SOURCE" ;; +- yes,) CFLAGS="$CC_O_LEVEL $FORTIFY_SOURCE" ;; +- ,yes) CFLAGS="-g" ;; ++ yes,yes) CFLAGS="$CC_O_LEVEL $FORTIFY_SOURCE $CFLAGS" ;; ++ yes,) CFLAGS="$CC_O_LEVEL $FORTIFY_SOURCE $CFLAGS" ;; ++ ,yes) CFLAGS="$CFLAGS" ;; + esac + + CC_CHECK_CFLAGS_APPEND([\ +-- +2.22.0 + diff --git a/sys-apps/kbd/kbd-2.1.0.ebuild b/sys-apps/kbd/kbd-2.0.4-r1.ebuild index 12711a24eca6..fa8186612c07 100644 --- a/sys-apps/kbd/kbd-2.1.0.ebuild +++ b/sys-apps/kbd/kbd-2.0.4-r1.ebuild @@ -3,8 +3,10 @@ EAPI=7 +inherit autotools pam + if [[ ${PV} == "9999" ]] ; then - inherit autotools git-r3 + inherit git-r3 EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git" EGIT_BRANCH="master" else @@ -32,6 +34,10 @@ BDEPEND=" test? ( dev-libs/check ) " +PATCHES=( + "${FILESDIR}/${P}-vlock_configure_switch.patch" +) + src_unpack() { if [[ ${PV} == "9999" ]] ; then git-r3_src_unpack @@ -41,6 +47,7 @@ src_unpack() { # Rename conflicting keymaps to have unique names, bug #293228 cd "${S}"/data/keymaps/i386 || die + mv dvorak/no.map dvorak/no-dvorak.map || die mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die mv olpc/es.map olpc/es-olpc.map || die mv olpc/pt.map olpc/pt-olpc.map || die @@ -49,9 +56,7 @@ src_unpack() { src_prepare() { default - if [[ ${PV} == "9999" ]] ; then - eautoreconf - fi + eautoreconf } src_configure() { @@ -67,4 +72,5 @@ src_install() { default docinto html dodoc docs/doc/*.html + use pam && pamd_mimic_system vlock auth account } diff --git a/sys-apps/kbd/kbd-2.2.0-r1.ebuild b/sys-apps/kbd/kbd-2.2.0-r1.ebuild new file mode 100644 index 000000000000..895a4995c52c --- /dev/null +++ b/sys-apps/kbd/kbd-2.2.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools pam + +if [[ ${PV} == "9999" ]] ; then + inherit autotools git-r3 + #EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git" + EGIT_REPO_URI="https://github.com/legionus/kbd.git" + EGIT_BRANCH="master" +else + SRC_URI="https://www.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls pam test" + +RDEPEND=" + app-arch/gzip + pam? ( + !app-misc/vlock + virtual/pam + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( dev-libs/check ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.2.0-cflags.patch" #691142 +) + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git-r3_src_unpack + else + default + fi + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 || die + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die + mv olpc/es.map olpc/es-olpc.map || die + mv olpc/pt.map olpc/pt-olpc.map || die + mv qwerty/cz.map qwerty/cz-qwerty.map || die +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable nls) + $(use_enable pam vlock) + $(use_enable test tests) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + docinto html + dodoc docs/doc/*.html + use pam && pamd_mimic_system vlock auth account +} diff --git a/sys-apps/kbd/kbd-9999.ebuild b/sys-apps/kbd/kbd-9999.ebuild index 12711a24eca6..097ab17ac29d 100644 --- a/sys-apps/kbd/kbd-9999.ebuild +++ b/sys-apps/kbd/kbd-9999.ebuild @@ -3,9 +3,12 @@ EAPI=7 +inherit pam + if [[ ${PV} == "9999" ]] ; then inherit autotools git-r3 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git" + #EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git" + EGIT_REPO_URI="https://github.com/legionus/kbd.git" EGIT_BRANCH="master" else SRC_URI="https://www.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" @@ -67,4 +70,5 @@ src_install() { default docinto html dodoc docs/doc/*.html + use pam && pamd_mimic_system vlock auth account } |