diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/pal |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/pal')
-rw-r--r-- | app-misc/pal/Manifest | 11 | ||||
-rw-r--r-- | app-misc/pal/files/0.4.3-ldflags.patch | 8 | ||||
-rw-r--r-- | app-misc/pal/files/0.4.3-strip.patch | 17 | ||||
-rw-r--r-- | app-misc/pal/files/fix-Wformat-security-errors.patch | 64 | ||||
-rw-r--r-- | app-misc/pal/files/pal-0.4.3-pkg_config.patch | 14 | ||||
-rw-r--r-- | app-misc/pal/files/pal-0.4.3-prefix.patch | 44 | ||||
-rw-r--r-- | app-misc/pal/metadata.xml | 13 | ||||
-rw-r--r-- | app-misc/pal/pal-0.4.3-r1.ebuild | 54 | ||||
-rw-r--r-- | app-misc/pal/pal-0.4.3-r2.ebuild | 61 |
9 files changed, 286 insertions, 0 deletions
diff --git a/app-misc/pal/Manifest b/app-misc/pal/Manifest new file mode 100644 index 000000000000..76953d0d8fd9 --- /dev/null +++ b/app-misc/pal/Manifest @@ -0,0 +1,11 @@ +AUX 0.4.3-ldflags.patch 188 SHA256 b40a4b472ae36b68718fc17b7b454b7c12c85fb7f404caa79b07ee1846a760f4 SHA512 590852462185b57907c57f76bf76d7b4444e9deae8df85f66fc3aecee0b2539e41ce27f1097b7b24e12da46659bde163bb666317df8ec107cfbd6e26e1027d66 WHIRLPOOL 05ff60b0de939e945f1ab5b0116b9cd61adb39debce5ffa54d186e408e25adb54f3c7a5828d789991cbd2160f7d8de196f00172c8b1194f2dfe911b385070bea +AUX 0.4.3-strip.patch 300 SHA256 64d1a77c31b64c1be4a43eb4ae468deceb702c12d87372a689623b29ce38b23d SHA512 1ccf90c0c968e098fd1ad0dd61cc177ebc484ffa207b469b75aec63263dfb1cf9850218571b3f9609c4fea30c10678b115f24d78b4b17d0f57173712f7d5cf86 WHIRLPOOL 8cd014a10536c8b78e679e7a746571d3d596ef07550b2609c6b11aa1bcdbf8110b178ad7352ea593a79b85698498c7f905f0a74ff049fee448ecfd584bbabd88 +AUX fix-Wformat-security-errors.patch 1909 SHA256 1df7021da5ebb417a93593bb7c0d067644317f026c50d0df9d403945b512bae5 SHA512 5c785d764afa40fe2a20ec489c8154bf6142c8aa13c71b3afbd09fac2f3b9d7cde26ab51bef02f6437037d48ef0054ecee1cc0d53db34a2492bd0f68300953a8 WHIRLPOOL 9b9fd59349985f4929520a3cf4635e8abf519abfa6b4fbc46ef201e54037ec0650d5af82ba81aca8088357fe5531c7db5871eb5cd6062062587437cbeef99712 +AUX pal-0.4.3-pkg_config.patch 521 SHA256 588701828764e094f87872cccfc4355d821bf40b4016cba688d5b32f54fe8ad4 SHA512 216d34abd73cdfd7f539d4881c25717ae2bdf919df05ad553bf4ed3a0a8e8a616dcb688f06f6beee6b2f5943f3accf1d144ae3a226ee5a2d0078d5450640eaa5 WHIRLPOOL 6a7e420364d8b5fe963ea5774f6b98369103f0a2f4b9da2bc15eb7fc327977ed541a51659d36c1c1f7c99e3a25cad32fc7baf0a07909828a55e395ce84fcd43d +AUX pal-0.4.3-prefix.patch 1519 SHA256 535f83042a6faaad01603e56a7c7c66f3e3eeadfc9d4f2627878926d6eafd39f SHA512 428cc71d6775f33916e6b9025627027dc8b75fa66dadb4cef42b3e2167a662e04d94fff7edec68916efc3a1944f3579fa88e3324e0a131b7bc10d7f3105ea2c9 WHIRLPOOL 6c322e0bf3ef6390c7fc78e28d3774339a24446e5e95249f2941f6e74275efce12e32531699528b7925a8817f8c43310156f14c11c4b20ec1793b4090eb538e0 +DIST pal-0.4.3.tgz 130865 SHA256 ce470cb7be76522ff58cd0325ad7817b6cc2132a5e0cea55de8c9eb63b54551c SHA512 8d543706e6dcabbdeb246ff18917b490da43c3211266dc67417906eb92602a107b066e2cb156da2b5362a19ac4992d1f21dc873485d3250912a53143f8257bf8 WHIRLPOOL ffe71469258a9f78ce47deed4b488b49df466c6ed2144186852ade1a55ee670747580ff18140dba92b007c148701bfa8a2c68a260259831f5eb357f5c8bf4d5c +EBUILD pal-0.4.3-r1.ebuild 1159 SHA256 4bcd1763e1787520bd1999b9f2ad056b745b58049c2c526d27e09743a1e157da SHA512 5eca53d7c34dd7e6c4b117234aa60609615c7630b01be8b01189e6e3c6759649c55d0235687b975c4f417778db2ef22e4d2d01740c723276859cd753e8c1784c WHIRLPOOL 517dc2f9ee32d645b39f9f835b25a5c442c1e61ac76ae4742d93a06b76d75c18b4cdd1dc49530bb4ba32ba89f99a964540f57c7b9c4ce2d5a3e475d5a8e394fa +EBUILD pal-0.4.3-r2.ebuild 1357 SHA256 c39d7b9c884ced1dbb0e2c50f4ccb12e0d19a40af0016544f821c487928c835e SHA512 279a1910ba8d290e92e786141d8a2e238c00dadfb6d00dc8cf39bdc4048e2b5d5c7a06c3773f4d489ccc6075665d0ff1ceecfb29d42bccbff50f61f1b80bf724 WHIRLPOOL 05d9cb4734dccf1e33c3459001fc6da60186a51ba8f85e7f3f6b8448bd82846b22ca91ffe38968d41e9b8eb053ac0c8fd6112ebfdc94be5b7139c59e954bc985 +MISC ChangeLog 2892 SHA256 c6b4a108cd2469d9af62766e85b615a4d5e4d10ecb5458db2f770e90f38aa5de SHA512 d32fb43986b2a6a2e8134d60ac3bb6cb7a5b2cabe6e4cccf2aee04d0dcd427acab8ef913d5c928f0c7b3398e297887cf967a161ca78c37fcc1cc3e4328c86aec WHIRLPOOL e41bbfc850f7f58aadd228e57adb214c351efade7d4501e6822cb5200d3967126f1ed4676b6803c126e06c9ea26c871ee2da0b00705487e912f3b26bee4e9f21 +MISC ChangeLog-2015 4937 SHA256 fe677cbc3f048730c8537a077fcf5ad31b750e70cf5db4d404d048f0a948110f SHA512 2e8cea7d7826e2a39a7a13d28a9c2ac60b240651b9f9827c8d04be5e1e612855b22269fd13ec706f1f536a79ef6fbb37b628ce55466461d7f76992df744d4637 WHIRLPOOL 042445d74b98aee99391a6a2e3613a59dffef2766117dabeb512bf694d19e2519de55244a619221f57f40487ba69626a63fc099307bd0c75a87b1d4a6bd68121 +MISC metadata.xml 509 SHA256 ded4548aab2080a1cc58bf812fd442839d6c6d7328902866ddf8b1571b25f4ca SHA512 cea3652f00f870d6db65ed87bc3b37b429cc4d3c8cb91d40742ca0dda93961d14779d348a84fe43d432e5a8dd4deb67ae2439151a8cb5c249fcf3b4e4ed2dcb4 WHIRLPOOL a6f51c2eb1d67577d368ebd86ad84dc0becb5ddb5d8f5c88e1ca22d85bbfefb7bdf75c524c1b5ab4e8e215f6551604926ad952bb9ac43fc67c216a467918bca3 diff --git a/app-misc/pal/files/0.4.3-ldflags.patch b/app-misc/pal/files/0.4.3-ldflags.patch new file mode 100644 index 000000000000..0bfd750ac5e7 --- /dev/null +++ b/app-misc/pal/files/0.4.3-ldflags.patch @@ -0,0 +1,8 @@ +--- a/src/Makefile.defs ++++ b/src/Makefile.defs +@@ -25,4 +25,4 @@ + + CFLAGS = ${OPT} + CPPFLAGS = ${INCLDIR} ${DEFS} +-LDFLAGS = ${LIBDIR} ${LIBS} ++LDFLAGS = ${LIBDIR} ${LIBS} ${LDOPT} diff --git a/app-misc/pal/files/0.4.3-strip.patch b/app-misc/pal/files/0.4.3-strip.patch new file mode 100644 index 000000000000..b3bfe3fd99f1 --- /dev/null +++ b/app-misc/pal/files/0.4.3-strip.patch @@ -0,0 +1,17 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -21,10 +21,10 @@ + $(NAME): $(OBJ) + @echo " [gcc] $(NAME)" + @$(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) -o $(NAME) +-ifneq ($(DEBUG),1) +- @echo " [strip] $(NAME)" +- @strip $(NAME) +-endif ++#ifneq ($(DEBUG),1) ++# @echo " [strip] $(NAME)" ++# @strip $(NAME) ++#endif + + + diff --git a/app-misc/pal/files/fix-Wformat-security-errors.patch b/app-misc/pal/files/fix-Wformat-security-errors.patch new file mode 100644 index 000000000000..f1255d9e55f1 --- /dev/null +++ b/app-misc/pal/files/fix-Wformat-security-errors.patch @@ -0,0 +1,64 @@ +From 801804d5b1beca5f32dd78cd23e9f9e012ae0420 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Tue, 2 Aug 2016 10:07:39 -0400 +Subject: [PATCH 1/1] src/{input,output}.c: fix -Wformat-security errors. + +Newer versions of GCC have the ability to warn about insecure uses of +format strings. These uses usually involve omitted "%s" format strings +to the printf() family of functions, and when compiling with +-Werror=format-security, they can cause the build to fail. This commit +fixes a few such uses in input.c and output.c + +Gentoo-Bug: 521104 +--- + src/input.c | 4 ++-- + src/output.c | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/input.c b/src/input.c +index 79db485..92bad36 100644 +--- a/src/input.c ++++ b/src/input.c +@@ -463,7 +463,7 @@ static gboolean get_file_to_load(gchar* file, gchar* pal_file, gboolean show_err + return FALSE; + } + else +- sprintf(pal_file, file); ++ sprintf(pal_file, "%s", file); + } + + else +@@ -618,7 +618,7 @@ GHashTable* load_files() + FILE* pal_file_handle = NULL; + + if(!get_file_to_load(settings->pal_file, pal_file, FALSE)) +- sprintf(pal_file, settings->pal_file); ++ sprintf(pal_file, "%s", settings->pal_file); + + pal_file_handle = get_file_handle(pal_file, TRUE); + if(pal_file_handle != NULL) +diff --git a/src/output.c b/src/output.c +index 97aaa0f..9806089 100644 +--- a/src/output.c ++++ b/src/output.c +@@ -249,7 +249,7 @@ static void pal_output_text_week(GDate* date, gboolean force_month_label, + pal_output_fg(BRIGHT, color, utf8_buf); + } + else +- g_print(utf8_buf); ++ g_print("%s", utf8_buf); + + + if(g_date_compare(date,today) == 0) /* make today bright */ +@@ -270,7 +270,7 @@ static void pal_output_text_week(GDate* date, gboolean force_month_label, + + } + else +- g_print(utf8_buf); ++ g_print("%s", utf8_buf); + + + /* print extra space between days */ +-- +2.7.3 + diff --git a/app-misc/pal/files/pal-0.4.3-pkg_config.patch b/app-misc/pal/files/pal-0.4.3-pkg_config.patch new file mode 100644 index 000000000000..2a299538e999 --- /dev/null +++ b/app-misc/pal/files/pal-0.4.3-pkg_config.patch @@ -0,0 +1,14 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -2,9 +2,9 @@ + + include Makefile.defs + +-INCLDIR = -I${prefix}/include `pkg-config --cflags glib-2.0` ++INCLDIR = -I${prefix}/include $(shell ${PKG_CONFIG} --cflags glib-2.0) + LIBDIR = +-LIBS = `pkg-config --libs glib-2.0` -lreadline -lncurses ++LIBS = $(shell ${PKG_CONFIG} --libs glib-2.0) -lreadline $(shell ${PKG_CONFIG} --libs ncurses) + + SRC = main.c colorize.c output.c input.c event.c rl.c html.c latex.c \ + add.c edit.c del.c remind.c search.c manage.c diff --git a/app-misc/pal/files/pal-0.4.3-prefix.patch b/app-misc/pal/files/pal-0.4.3-prefix.patch new file mode 100644 index 000000000000..08dfba41c7e7 --- /dev/null +++ b/app-misc/pal/files/pal-0.4.3-prefix.patch @@ -0,0 +1,44 @@ +--- a/src/Makefile.defs ++++ b/src/Makefile.defs +@@ -3,7 +3,7 @@ + + # directory to install to. Depending on your distribution, you might + # want to change this to /usr/local +-prefix = /usr ++prefix = @GENTOO_PORTAGE_EPREFIX@/usr + CC = gcc + + PAL_VERSION = 0.3.5_pre1 +--- a/src/input.c ++++ b/src/input.c +@@ -567,7 +567,7 @@ + } + + /* attempt to copy /etc/pal.conf to ~/.pal/pal.conf */ +- file = fopen("/etc/pal.conf", "r"); ++ file = fopen("@GENTOO_PORTAGE_EPREFIX@/etc/pal.conf", "r"); + + /* if not found, try PREFIX/share/pal/pal.conf instead */ + /* NOTE: This is will be removed in the future */ +@@ -577,7 +577,7 @@ + + if(file == NULL) + { +- pal_output_error(_("ERROR: Can't open file: /etc/pal.conf\n")); ++ pal_output_error(_("ERROR: Can't open file: @GENTOO_PORTAGE_EPREFIX@/etc/pal.conf\n")); + pal_output_error(_("ERROR: Can't open file: " PREFIX "/share/pal/pal.conf\n")); + pal_output_error(_("ERROR: This indicates an improper installation.\n")); + return ht; +--- a/src/Makefile ++++ b/src/Makefile +@@ -51,8 +51,8 @@ + @echo " --- Installing global data --- " + @mkdir -p ${DESTDIR}${prefix}/share/pal; + install -m 0644 -o root ../share/*.pal ${DESTDIR}${prefix}/share/pal +- @mkdir -p ${DESTDIR}/etc; +- install -m 0644 -o root ../pal.conf ${DESTDIR}/etc/ ++ @mkdir -p ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc; ++ install -m 0644 -o root ../pal.conf ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc/ + @echo + + # "install" will install the files needed by pal and also check to see diff --git a/app-misc/pal/metadata.xml b/app-misc/pal/metadata.xml new file mode 100644 index 000000000000..9c65100f6b4b --- /dev/null +++ b/app-misc/pal/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +<longdescription> + pal is a command-line calendar program for Unix/Linux systems that can keep + track of events. It has similarities with the Unix cal command, the more + complex GNU gcal program and the calendar program distributed with the BSDs. +</longdescription> + <upstream> + <remote-id type="sourceforge">palcal</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/pal/pal-0.4.3-r1.ebuild b/app-misc/pal/pal-0.4.3-r1.ebuild new file mode 100644 index 000000000000..132f917792be --- /dev/null +++ b/app-misc/pal/pal-0.4.3-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils prefix toolchain-funcs + +DESCRIPTION="pal command-line calendar program" +HOMEPAGE="http://palcal.sourceforge.net/" +SRC_URI="mirror://sourceforge/palcal/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="nls" + +RDEPEND=" + >=dev-libs/glib-2.0 + nls? ( virtual/libintl ) + sys-libs/ncurses + sys-libs/readline +" +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/pkgconfig +" + +S=${WORKDIR}/${P}/src + +src_prepare() { + epatch "${FILESDIR}"/${PV}-strip.patch + epatch "${FILESDIR}"/${PV}-ldflags.patch + epatch "${FILESDIR}"/${P}-pkg_config.patch + epatch "${FILESDIR}"/${P}-prefix.patch + + eprefixify Makefile.defs input.c Makefile + sed -i -e 's/ -o root//g' {.,convert}/Makefile || die + + tc-export PKG_CONFIG +} + +src_compile() { + emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install-man install-bin install-share + + if use nls; then + emake DESTDIR="${D}" install-mo + fi + + dodoc "${WORKDIR}"/${P}/{ChangeLog,doc/example.css} +} diff --git a/app-misc/pal/pal-0.4.3-r2.ebuild b/app-misc/pal/pal-0.4.3-r2.ebuild new file mode 100644 index 000000000000..ee29bc4c86d7 --- /dev/null +++ b/app-misc/pal/pal-0.4.3-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit prefix toolchain-funcs + +DESCRIPTION="Command-line calendar program" +HOMEPAGE="http://palcal.sourceforge.net/" +SRC_URI="mirror://sourceforge/palcal/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="nls" + +RDEPEND=" + >=dev-libs/glib-2.0 + nls? ( virtual/libintl ) + sys-libs/ncurses:0 + sys-libs/readline:0 +" +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/pkgconfig +" + +RESTRICT="test" # Has no tests to run + +PATCHES=( + "${FILESDIR}"/${PV}-strip.patch + "${FILESDIR}"/${PV}-ldflags.patch + "${FILESDIR}"/${P}-pkg_config.patch + "${FILESDIR}"/${P}-prefix.patch + "${FILESDIR}"/fix-Wformat-security-errors.patch +) + +src_prepare() { + default + + cd src || die "failed to change to the src directory" + eprefixify Makefile.defs input.c Makefile + sed -i -e 's/ -o root//g' {.,convert}/Makefile || die + tc-export PKG_CONFIG +} + +src_compile() { + cd src || die "failed to change to the src directory" + emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}" +} + +src_install() { + dodoc ChangeLog doc/example.css + + cd src || die "failed to change to the src directory" + emake DESTDIR="${D}" install-man install-bin install-share + + if use nls; then + emake DESTDIR="${D}" install-mo + fi +} |