diff options
Diffstat (limited to 'app-editors/zile')
-rw-r--r-- | app-editors/zile/Manifest | 2 | ||||
-rw-r--r-- | app-editors/zile/files/zile-2.3.24-gets.patch | 30 | ||||
-rw-r--r-- | app-editors/zile/files/zile-2.3.24-userhome.patch | 26 | ||||
-rw-r--r-- | app-editors/zile/metadata.xml | 21 | ||||
-rw-r--r-- | app-editors/zile/zile-2.3.24-r2.ebuild | 52 | ||||
-rw-r--r-- | app-editors/zile/zile-2.4.15.ebuild | 5 | ||||
-rw-r--r-- | app-editors/zile/zile-2.6.2-r2.ebuild | 51 |
7 files changed, 65 insertions, 122 deletions
diff --git a/app-editors/zile/Manifest b/app-editors/zile/Manifest index ec186e19f4ea..fb9194a4c5e5 100644 --- a/app-editors/zile/Manifest +++ b/app-editors/zile/Manifest @@ -1,2 +1,2 @@ -DIST zile-2.3.24.tar.gz 953962 BLAKE2B 242f0f9532a536d5ba36664031cf86eba753239c0f6dcd47c086496628a730bdd0a9112dc1ffd26965068f6d66d35d3ad3c92fc2753e129adf9a5923321e2cdf SHA512 8361f42436ae9ca150f09d830096b7a3fb0089d58bffe5ad7538b5ec5cd4e0e50085213e938db1a95e2922db845d1d2f36841a65fe1b9b72f60cd930dd8f09b9 DIST zile-2.4.15.tar.gz 1490611 BLAKE2B 3744ab2459edf9b0dc9ca976c5f37625d06e0766e3a1fbb59112fe375af6f6cc5e8c068dcb127b338091f3130d32190ad4bc3a79eac7f9a4f87b46723d5a4a82 SHA512 e2a04c280ae0c0038e6ef18abec0be55063a472f77a511bf31459712be24659edcaa2d1c861d7c00bdab87a1881af03d14eb561047c386cbff5f90b13b1a2575 +DIST zile-2.6.2.tar.gz 1152751 BLAKE2B db51b534c8d76e1def91bbfe49cab501ff1bccd6fbeddd5622d8fca3695305c53e480eed1978e880621e09955e2b98519cfa02cf259006a08d1a8722122148ea SHA512 16d5cece403fc215d53b35c31fe6f743d53d7a01cdc7d101cabe6760173539c9c31e092b29c374f28a723708027f6de626fcfee302962848091f85078fa81761 diff --git a/app-editors/zile/files/zile-2.3.24-gets.patch b/app-editors/zile/files/zile-2.3.24-gets.patch deleted file mode 100644 index 9060c4bcf921..000000000000 --- a/app-editors/zile/files/zile-2.3.24-gets.patch +++ /dev/null @@ -1,30 +0,0 @@ -https://bugs.gentoo.org/623218 -Backported from gnulib in zile-2.4.11. - ---- zile-2.3.24-orig/lib/stdio.in.h -+++ zile-2.3.24/lib/stdio.in.h -@@ -717,22 +717,11 @@ - # endif - #endif - --#if @GNULIB_GETS@ --# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ --# if !(defined __cplusplus && defined GNULIB_NAMESPACE) --# undef gets --# define gets rpl_gets --# endif --_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1))); --_GL_CXXALIAS_RPL (gets, char *, (char *s)); --# else --_GL_CXXALIAS_SYS (gets, char *, (char *s)); --# undef gets --# endif --_GL_CXXALIASWARN (gets); - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#undef gets -+#if HAVE_RAW_DECL_GETS - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); - #endif - diff --git a/app-editors/zile/files/zile-2.3.24-userhome.patch b/app-editors/zile/files/zile-2.3.24-userhome.patch deleted file mode 100644 index 37f605ccf610..000000000000 --- a/app-editors/zile/files/zile-2.3.24-userhome.patch +++ /dev/null @@ -1,26 +0,0 @@ -http://lists.gnu.org/archive/html/bug-zile/2011-08/msg00030.html - ---- zile-2.3.24-orig/src/file.c -+++ zile-2.3.24/src/file.c -@@ -177,14 +177,15 @@ compact_path (astr path) - { - /* Replace `/userhome/' (if found) with `~/'. */ - size_t homelen = strlen (pw->pw_dir); -- if (astr_len (path) >= homelen && -- !strncmp (pw->pw_dir, astr_cstr (path), homelen)) -+ if (homelen > 0 && pw->pw_dir[homelen - 1] == '/') -+ homelen--; -+ -+ if (astr_len (path) > homelen && -+ !strncmp (pw->pw_dir, astr_cstr (path), homelen) && -+ astr_get (path, homelen) == '/') - { - astr buf = astr_new_cstr ("~/"); -- if (STREQ (pw->pw_dir, "/")) -- astr_cat_cstr (buf, astr_cstr (path) + 1); -- else -- astr_cat_cstr (buf, astr_cstr (path) + homelen + 1); -+ astr_cat_cstr (buf, astr_cstr (path) + homelen + 1); - astr_cpy (path, buf); - astr_delete (buf); - } diff --git a/app-editors/zile/metadata.xml b/app-editors/zile/metadata.xml index 237d50416e4f..26b23325a7f0 100644 --- a/app-editors/zile/metadata.xml +++ b/app-editors/zile/metadata.xml @@ -1,18 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>emacs@gentoo.org</email> - <name>Gentoo Emacs project</name> -</maintainer> -<longdescription> + <maintainer type="project"> + <email>emacs@gentoo.org</email> + <name>Gentoo Emacs project</name> + </maintainer> + <longdescription> Zile is a small, fast, and powerful Emacs clone. It is useful for small footprint installations (e.g. on floppy disk), machines with little memory, or quick editing sessions, especially on remote machines or as a different user, e.g. root. -</longdescription> -<use> - <flag name="valgrind">Enable usage of <pkg>dev-util/valgrind</pkg> - in tests</flag> -</use> + </longdescription> + <upstream> + <remote-id type="savannah">zile</remote-id> + </upstream> </pkgmetadata> diff --git a/app-editors/zile/zile-2.3.24-r2.ebuild b/app-editors/zile/zile-2.3.24-r2.ebuild deleted file mode 100644 index a283c37c087d..000000000000 --- a/app-editors/zile/zile-2.3.24-r2.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -DESCRIPTION="Zile is a small Emacs clone" -HOMEPAGE="https://www.gnu.org/software/zile/" -SRC_URI="mirror://gnu/zile/${P}.tar.gz" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" -IUSE="test valgrind" -RESTRICT="!test? ( test )" - -RDEPEND="sys-libs/ncurses:0=" -DEPEND="${RDEPEND} - virtual/pkgconfig - test? ( valgrind? ( dev-util/valgrind ) )" - -PATCHES=("${FILESDIR}"/${P}-{userhome,gets}.patch) - -src_configure() { - # --without-emacs to suppress tests for GNU Emacs #630652 - econf \ - --without-emacs \ - $(use test && use_with valgrind || echo "--without-valgrind") \ - CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)" -} - -src_test() { - if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then - # We have a sane terminal that can move the cursor - emake check - else - ewarn "Terminal type \"${TERM}\" is too stupid to run zile" - ewarn "Running the tests with TERM=vt100 instead" - TERM=vt100 emake check - fi -} - -src_install() { - emake DESTDIR="${D}" install - - # FAQ is installed by the build system in /usr/share/zile - dodoc AUTHORS BUGS NEWS README THANKS - - # Zile should never install charset.alias (even on non-glibc arches) - rm -f "${ED}"/usr/lib/charset.alias -} diff --git a/app-editors/zile/zile-2.4.15.ebuild b/app-editors/zile/zile-2.4.15.ebuild index 0a31cf744593..05b1686856f7 100644 --- a/app-editors/zile/zile-2.4.15.ebuild +++ b/app-editors/zile/zile-2.4.15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="mirror://gnu/zile/${P}.tar.gz" LICENSE="GPL-3+" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="acl" RDEPEND=">=dev-libs/boehm-gc-7.2:= @@ -28,6 +28,7 @@ BDEPEND="dev-lang/perl DOCS="README THANKS" QA_AM_MAINTAINER_MODE=".*help2man.*" #450278 +QA_CONFIG_IMPL_DECL_SKIP=(MIN) #923835 (false positive) src_configure() { econf \ diff --git a/app-editors/zile/zile-2.6.2-r2.ebuild b/app-editors/zile/zile-2.6.2-r2.ebuild new file mode 100644 index 000000000000..3293dc270cea --- /dev/null +++ b/app-editors/zile/zile-2.6.2-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs vala + +DESCRIPTION="Zile is a small Emacs clone" +HOMEPAGE="https://www.gnu.org/software/zile/" +SRC_URI="mirror://gnu/zile/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ppc ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" + +RDEPEND="dev-libs/glib:2 + dev-libs/libgee:0.8= + sys-libs/ncurses:0=" + +DEPEND="${RDEPEND}" + +BDEPEND="dev-lang/perl + sys-apps/help2man + virtual/pkgconfig + $(vala_depend)" + +# AUTHORS, FAQ, and NEWS are installed by the build system +DOCS="README THANKS" + +QA_AM_MAINTAINER_MODE=".*help2man.*" #450278 + +src_prepare() { + default + vala_setup + rm *_vala.stamp || die +} + +src_configure() { + econf CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)" +} + +src_test() { + if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then + # We have a sane terminal that can move the cursor + emake check + else + ewarn "Terminal type \"${TERM}\" is too stupid to run zile" + ewarn "Running the tests with unset TERM instead" + ( unset TERM; emake check ) + fi +} |