From 95a97c3f0b0d048aaf9e183702a1d06b30415b35 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Sep 2022 05:18:37 +0100 Subject: gentoo auto-resync : 18:09:2022 - 05:18:37 --- app-text/expander/Manifest | 5 +- app-text/expander/expander-2.0.5-r2.ebuild | 41 --------------- app-text/expander/expander-2.05-r3.ebuild | 43 ++++++++++++++++ .../expander/files/expander-2.0.5-gentoo.patch | 58 --------------------- .../expander/files/expander-2.05-clang15.patch | 60 ++++++++++++++++++++++ app-text/expander/files/expander-2.05-gentoo.patch | 58 +++++++++++++++++++++ 6 files changed, 164 insertions(+), 101 deletions(-) delete mode 100644 app-text/expander/expander-2.0.5-r2.ebuild create mode 100644 app-text/expander/expander-2.05-r3.ebuild delete mode 100644 app-text/expander/files/expander-2.0.5-gentoo.patch create mode 100644 app-text/expander/files/expander-2.05-clang15.patch create mode 100644 app-text/expander/files/expander-2.05-gentoo.patch (limited to 'app-text/expander') diff --git a/app-text/expander/Manifest b/app-text/expander/Manifest index 65ffaeeead58..b568ad40dc3b 100644 --- a/app-text/expander/Manifest +++ b/app-text/expander/Manifest @@ -1,4 +1,5 @@ -AUX expander-2.0.5-gentoo.patch 1971 BLAKE2B 16459adb991e28472c569ef77bd4f688110e0d2a99970ed65e5332736a1a90a82afa6a04aaec38ba53b16b3303efbe8706324ffe1a37d6b00637550802d23960 SHA512 f81577c3ee11d2e13b59258a59e02a3ec26b265ee2206fde5585f75c21db015907835ade2db88a19ab1afd778a3a7d146d99d1dfb891237d04b2e6a052f49f57 +AUX expander-2.05-clang15.patch 1705 BLAKE2B 8a9b52c411661b50c30b38e42a529563e615063762bbecf11cc0e8c67da3dfd46a7c071e85d54872d81729acf1a94f6aeede79cfaedb87165a82b81c411f9bf6 SHA512 d578094dce59698c9c505dd0902f2bb9826d44ef2d70acd3ce67cae48ca7e1fc807a080d036963dddfe91649da87f9fd88963b52945fe80e7bc75cf6340b16ac +AUX expander-2.05-gentoo.patch 1971 BLAKE2B 16459adb991e28472c569ef77bd4f688110e0d2a99970ed65e5332736a1a90a82afa6a04aaec38ba53b16b3303efbe8706324ffe1a37d6b00637550802d23960 SHA512 f81577c3ee11d2e13b59258a59e02a3ec26b265ee2206fde5585f75c21db015907835ade2db88a19ab1afd778a3a7d146d99d1dfb891237d04b2e6a052f49f57 DIST nedit_expander_kit_2.05.tar.gz 92571 BLAKE2B 0b77640b87372003e873a9e9146aeec82220dfc86b4f6d57220807443c007b6f4f99da8da505d7b6d2f1350150698deed84c8cb710297c6d8646ed192d3ee04a SHA512 a9d5e97db95eec9f98d71360c6af5a6908f31f59221ac1f509ae4f661b0614610b9591b9e2f58bba1175a6b609407d720369ba99cecb5496133d889bf93788ee -EBUILD expander-2.0.5-r2.ebuild 952 BLAKE2B 44e941c8817d949c5ab0832f6f9e3b64a590c1a55563844428469daba0540a06e48c85edae474c3693de0f93c44af4f8cbf73efba18b1223e3d9a419feba4ec4 SHA512 86365e5dbc02dbc8a57a67884e256e50ab8c74b3a61c1648a814599cac2ef6d77ec5fbe33b323ca26d90a4b5efd74e16d52603fb4e6317e45baaa277c24295a9 +EBUILD expander-2.05-r3.ebuild 1003 BLAKE2B f4a589d798ce039a42490d97d2aa2c4ac825a0b49538773b8b1c4fcf53d6c63134b1f6ff0f686458182969a30c3079141cb38b83cb303a3ccc380ded8f942e37 SHA512 2256e4017eb1cbdd58372424b64ce56733c13623ffd288cdbad4bc72f2cda04d159ac6a43922bd68a2a8adbf52b0da5371fe2e2aa20c42339fab6df2f85f337d MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/app-text/expander/expander-2.0.5-r2.ebuild b/app-text/expander/expander-2.0.5-r2.ebuild deleted file mode 100644 index 6684a72038d5..000000000000 --- a/app-text/expander/expander-2.0.5-r2.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="Expander is a utility that acts as a filter for text editors" -HOMEPAGE="http://www.nedit.org" -SRC_URI="ftp://ftp.nedit.org/pub/contrib/misc/nedit_expander_kit_2.05.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-linux ~ppc-macos" - -S="${WORKDIR}/${PN}" - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) - -src_compile() { - emake -C src CC="$(tc-getCC)" -} - -src_install() { - dobin src/{expander,boxcomment,align_columns,align_comments,where_is} - dosym boxcomment /usr/bin/unboxcomment - - einstalldocs - dodoc USAGE - doman docs/*.1 - - insinto /usr/share/${P} - doins -r service defs macros misc templates -} - -pkg_postinst() { - elog - elog "Instructions for using expander with NEdit are in /usr/share/doc/${PF}/INSTALL" - elog "Macro, definition and template files can be found in /usr/share/${P}" - elog -} diff --git a/app-text/expander/expander-2.05-r3.ebuild b/app-text/expander/expander-2.05-r3.ebuild new file mode 100644 index 000000000000..ee8a110a01e6 --- /dev/null +++ b/app-text/expander/expander-2.05-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Expander is a utility that acts as a filter for text editors" +HOMEPAGE="http://www.nedit.org" +SRC_URI="ftp://ftp.nedit.org/pub/contrib/misc/nedit_expander_kit_${PV}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-linux ~ppc-macos" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-clang15.patch +) + +src_compile() { + emake -C src CC="$(tc-getCC)" +} + +src_install() { + dobin src/{expander,boxcomment,align_columns,align_comments,where_is} + dosym boxcomment /usr/bin/unboxcomment + + einstalldocs + dodoc USAGE + doman docs/*.1 + + insinto /usr/share/${P} + doins -r service defs macros misc templates +} + +pkg_postinst() { + elog + elog "Instructions for using expander with NEdit are in ${EROOT}/usr/share/doc/${PF}/INSTALL" + elog "Macro, definition and template files can be found in ${EROOT}/usr/share/${P}" + elog +} diff --git a/app-text/expander/files/expander-2.0.5-gentoo.patch b/app-text/expander/files/expander-2.0.5-gentoo.patch deleted file mode 100644 index 460a8164cee5..000000000000 --- a/app-text/expander/files/expander-2.0.5-gentoo.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- a/src/Makefile -+++ b/src/Makefile -@@ -3,15 +3,14 @@ - bindir = $(BINDIR)/ - - copy = ln -fs --CFLAGS += -v -g # -DNEED_GETOPT_PROTO_TYPE --compiler = cc $(CFLAGS) -+compiler = $(CC) $(CFLAGS) - - executables = expander boxcomment align_columns align_comments where_is - - #-------------- - # Build Targets - #-------------- --all: verify $(executables) -+all: $(executables) - - verify: - @if [ "$(bindir)" = "/" ]; then \ -@@ -24,32 +23,31 @@ - # Abbreviation expansion filter program (with NEdit, language sensitive) - #----------------------------------------------------------------------- - expander: expander.c -- $(compiler) -o $(bindir)$@ $? -+ $(compiler) $(LDFLAGS) -o $@ $? - - #-------------------------------------------------------------------------- - # Surround given text with open ended box. (with NEdit, language sensitive) - #-------------------------------------------------------------------------- - boxcomment: boxcomment.c -- $(compiler) -o $(bindir)$@ $? -- @if [ ! -f $(bindir)un$@ ]; then $(copy) $(bindir)$@ $(bindir)un$@; fi -+ $(compiler) $(LDFLAGS) -o $@ $? - - #------------------------------------------------------------------------------- - # Align ragged looking 'C' style comments (good substitute for align_equals too) - #------------------------------------------------------------------------------- - align_comments: align_comments.c -- $(compiler) -o $(bindir)$@ $? -+ $(compiler) $(LDFLAGS) -o $@ $? - - #---------------------------- - # Align given text in columns - #---------------------------- - align_columns: align_columns.c -- $(compiler) -o $(bindir)$@ $? -+ $(compiler) $(LDFLAGS) -o $@ $? - - #---------------------------------------------- - # File locator (substitute for which, where...) - #---------------------------------------------- - where_is: where_is.c -- $(compiler) -o $(bindir)$@ $? -+ $(compiler) $(LDFLAGS) -o $@ $? - - #------------------------------------------------ - # Here is how to uninstall the executables built. diff --git a/app-text/expander/files/expander-2.05-clang15.patch b/app-text/expander/files/expander-2.05-clang15.patch new file mode 100644 index 000000000000..a7ae9bed3ddf --- /dev/null +++ b/app-text/expander/files/expander-2.05-clang15.patch @@ -0,0 +1,60 @@ +https://bugs.gentoo.org/870898 +--- a/src/align_columns.c ++++ b/src/align_columns.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + /*============================================================================*/ + /* SYMBOL DEFINITIONS */ +--- a/src/align_comments.c ++++ b/src/align_comments.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + /*===========================================================================*/ + /* SYMBOL DEFINITIONS */ +--- a/src/boxcomment.c ++++ b/src/boxcomment.c +@@ -59,6 +59,7 @@ + #include + #include + #include ++#include + + /*============================================================================*/ + /* SYMBOL DEFINITIONS */ +--- a/src/expander.c ++++ b/src/expander.c +@@ -114,6 +114,7 @@ + #include + #include + #include ++#include + + /*==========================================================================*/ + /* MACRO DEFINITIONS */ +@@ -1264,7 +1265,7 @@ bool_t locate_definition( + bool_t ignore_definition = FALSE; + int i; + char line[ MAXBUF ]; +- static level = 0; ++ static int level = 0; + + /*--------------------- + * Recursion protection. +--- a/src/where_is.c ++++ b/src/where_is.c +@@ -54,6 +54,7 @@ + #include + #include + #include ++#include + + typedef int bool_t; + diff --git a/app-text/expander/files/expander-2.05-gentoo.patch b/app-text/expander/files/expander-2.05-gentoo.patch new file mode 100644 index 000000000000..460a8164cee5 --- /dev/null +++ b/app-text/expander/files/expander-2.05-gentoo.patch @@ -0,0 +1,58 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -3,15 +3,14 @@ + bindir = $(BINDIR)/ + + copy = ln -fs +-CFLAGS += -v -g # -DNEED_GETOPT_PROTO_TYPE +-compiler = cc $(CFLAGS) ++compiler = $(CC) $(CFLAGS) + + executables = expander boxcomment align_columns align_comments where_is + + #-------------- + # Build Targets + #-------------- +-all: verify $(executables) ++all: $(executables) + + verify: + @if [ "$(bindir)" = "/" ]; then \ +@@ -24,32 +23,31 @@ + # Abbreviation expansion filter program (with NEdit, language sensitive) + #----------------------------------------------------------------------- + expander: expander.c +- $(compiler) -o $(bindir)$@ $? ++ $(compiler) $(LDFLAGS) -o $@ $? + + #-------------------------------------------------------------------------- + # Surround given text with open ended box. (with NEdit, language sensitive) + #-------------------------------------------------------------------------- + boxcomment: boxcomment.c +- $(compiler) -o $(bindir)$@ $? +- @if [ ! -f $(bindir)un$@ ]; then $(copy) $(bindir)$@ $(bindir)un$@; fi ++ $(compiler) $(LDFLAGS) -o $@ $? + + #------------------------------------------------------------------------------- + # Align ragged looking 'C' style comments (good substitute for align_equals too) + #------------------------------------------------------------------------------- + align_comments: align_comments.c +- $(compiler) -o $(bindir)$@ $? ++ $(compiler) $(LDFLAGS) -o $@ $? + + #---------------------------- + # Align given text in columns + #---------------------------- + align_columns: align_columns.c +- $(compiler) -o $(bindir)$@ $? ++ $(compiler) $(LDFLAGS) -o $@ $? + + #---------------------------------------------- + # File locator (substitute for which, where...) + #---------------------------------------------- + where_is: where_is.c +- $(compiler) -o $(bindir)$@ $? ++ $(compiler) $(LDFLAGS) -o $@ $? + + #------------------------------------------------ + # Here is how to uninstall the executables built. -- cgit v1.2.3