From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-terms/multi-aterm/Manifest | 8 +++ .../multi-aterm/files/0.2.1-initialize-vars.patch | 11 ++++ .../multi-aterm-0.2.1-display-security-issue.patch | 23 +++++++++ .../files/multi-aterm-0.2.1-libpng14.patch | 20 ++++++++ x11-terms/multi-aterm/metadata.xml | 5 ++ x11-terms/multi-aterm/multi-aterm-0.2.1-r1.ebuild | 58 ++++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 x11-terms/multi-aterm/Manifest create mode 100644 x11-terms/multi-aterm/files/0.2.1-initialize-vars.patch create mode 100644 x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch create mode 100644 x11-terms/multi-aterm/files/multi-aterm-0.2.1-libpng14.patch create mode 100644 x11-terms/multi-aterm/metadata.xml create mode 100644 x11-terms/multi-aterm/multi-aterm-0.2.1-r1.ebuild (limited to 'x11-terms/multi-aterm') diff --git a/x11-terms/multi-aterm/Manifest b/x11-terms/multi-aterm/Manifest new file mode 100644 index 000000000000..cacf651b42d3 --- /dev/null +++ b/x11-terms/multi-aterm/Manifest @@ -0,0 +1,8 @@ +AUX 0.2.1-initialize-vars.patch 317 SHA256 81d6d19a0a364781f26081b867e8b3d45d061b6bee3ed810f0fcff17e06135b3 SHA512 be7a0dde783074c859ffcf6c0ee4a527e2a3229ef19ac9f820116edbdda7d6fe1beac56eb4d682cf0ccd48bccd9252924c1bf0bbd2f7217bfb528be5e671e255 WHIRLPOOL 588c03d02cf0dbf180b9dc4fadb8d5a1aa793d6bfd9221321d96c50504179792a4e10e0d231946990c2d1b9cf3a5bce6a1447ca5b34fcf1792ac43352811cc2b +AUX multi-aterm-0.2.1-display-security-issue.patch 550 SHA256 1f1f9c52ec352302fb4269205c8ff08342ad8f000eaa4e14ecff84f626772503 SHA512 dd8b216a33585a0d54e4d261a6361b94f626bfef4be5d65d4bde797384f7dcaed85137ae000261775f31c93077a1f42bc56da466713b5e905d61554718b2efaa WHIRLPOOL aaf49e64eac3d08d34a52d8151f27df929eaba6823dcf05751cf8600accd2e9fd011d1b7877cc9b36c7e444baee4389276d6fba906212e07c009a4f99017d6ac +AUX multi-aterm-0.2.1-libpng14.patch 539 SHA256 25a75cae7cf473872982f5ca0cd2fea827e7a5110d5a495fbe641b7de4b8bd75 SHA512 74b31a1692299f92e85c6894a6ed220be1f20983da2bc8649454bc02d6f1186ebc97b645bee122578dc64630bdb098cd54707ab7b9850fc123a6cf6c9c9c52a6 WHIRLPOOL e011704cdbdb7e717836e3e48d4bd40022edd95bc433d982fd2818697fc99acd5f715395efa79b99c373f62c919d2fbaaea8b0b5ae5887eee589c9573491c1a3 +DIST multi-aterm-0.2.1.tar.gz 237428 SHA256 de12604e29dabd0157ce061c785b482ad8c9721027ec31f60609dc9f647bd5fb SHA512 f5326314c97514609c84ae997c336afe6baa334d2295b4d4803e72411c07c377475a713473193a8d4260eca9008fbbc31c0ef93805e66024ea0814ab504c8d2a WHIRLPOOL 79a869ff5c431a4058f5be63ba4d0c014d7c4999f70d642362c315f17e7c12df35745e74d179f9033858297897ff1077bb8dc22e90a54713b703e1a2859518a1 +EBUILD multi-aterm-0.2.1-r1.ebuild 1197 SHA256 c45650af0e2ab3afe9a22f8c480601047ca81a2afb5ba6cb67738b734e284f9f SHA512 bcbd7c7be5187d06541118b2daa310d86a37dd1fcf94ff7b64e0a2436a6c5b52db1eb1d1df4f816afe119ae777eb0d868f562977162edc1f5f0edd84a77718f2 WHIRLPOOL 5c46bc397ccba8094bc2ca527cd99f55d69d9aa65744f681aa1f63efa248ba09b85de8f7667801aad79b72397e0cbfacf0afbe278c36b7248110f4b053173a08 +MISC ChangeLog 2679 SHA256 fb1b6f17191aad666c68d6a7356d2886f7c1f08ed2592b5b766b28d0fefa2ea3 SHA512 c75ee8265c5cb7b8e65352ace4f98c5b4ba631d690bc249326ae90733fbb91535ca9b8153b364588d1a6f6f9b5ebc22c1f934ff6e1a7394b57e3c401556498b1 WHIRLPOOL 1c14118d4c9b56a40fbba69fb37131eb2bc9c412894227b3d4f7e23356a834f6f022a37404d676c3f620eeb45bb8501aeccf91489e4f28c4610e537ada35a374 +MISC ChangeLog-2015 4353 SHA256 a60273ea57790b5071551d499ce378aff44ca24c6e2c0230e059c69bf657d7eb SHA512 e31a26fd5c54cc90187ed9cb485960e9a570f5d83d72fdfc7b4ce6d9e0c01e57a5a5403bf180eac88a280d49f9b205b0e7662de58c34333d6d206ff65d0f8b05 WHIRLPOOL b02601568ca04a16137a16a132363344e77b27754682c686e020da064209c6b0f49064f82e3d093ab27e76a1a1851a54c6cb95029c11c34576b34022e8a6174f +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/x11-terms/multi-aterm/files/0.2.1-initialize-vars.patch b/x11-terms/multi-aterm/files/0.2.1-initialize-vars.patch new file mode 100644 index 000000000000..58be689bb961 --- /dev/null +++ b/x11-terms/multi-aterm/files/0.2.1-initialize-vars.patch @@ -0,0 +1,11 @@ +--- src/command.c ++++ src/command.c +@@ -1487,7 +1487,7 @@ + static XComposeStatus compose = { NULL, 0 }; + static unsigned char kbuf[KBUFSZ]; + int ctrl, meta, shft, len; +- KeySym keysym; ++ KeySym keysym = 0; + + /* + * use Num_Lock to toggle Keypad on/off. If Num_Lock is off, allow an diff --git a/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch new file mode 100644 index 000000000000..939785484030 --- /dev/null +++ b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/219754 + +--- src/main.c ++++ src/main.c +@@ -1853,15 +1853,13 @@ + //get_options(argc, argv); + //display_options(); + +- if (display_name == NULL) +- if ((display_name = getenv("DISPLAY")) == NULL) +- display_name = ":0"; +- + Xdisplay = XOpenDisplay(display_name); + + if (!Xdisplay) + { +- print_error("can't open display %s", display_name); ++ print_error("can't open display %s", display_name?display_name: ++ getenv("DISPLAY")?getenv("DISPLAY"): ++ "as no -d given and DISPLAY not set"); + exit(EXIT_FAILURE); + } + diff --git a/x11-terms/multi-aterm/files/multi-aterm-0.2.1-libpng14.patch b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-libpng14.patch new file mode 100644 index 000000000000..6aeadc47780e --- /dev/null +++ b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-libpng14.patch @@ -0,0 +1,20 @@ +--- src/png.c ++++ src/png.c +@@ -86,7 +86,7 @@ + display_depth = XDefaultDepth(display,XDefaultScreen(display)); + + fread(sig, 1, 8, ifile); +- if (!png_check_sig(sig, 8)){ ++ if (png_sig_cmp (sig, 0, 8)){ + fclose(ifile); + return -1; + } +@@ -116,7 +116,7 @@ + + if (png_depth < 8){ + if (png_color_type == PNG_COLOR_TYPE_GRAY ){ +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + png_row_bytes = png_width; + }else{ + png_set_expand(png_ptr); diff --git a/x11-terms/multi-aterm/metadata.xml b/x11-terms/multi-aterm/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/x11-terms/multi-aterm/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/x11-terms/multi-aterm/multi-aterm-0.2.1-r1.ebuild b/x11-terms/multi-aterm/multi-aterm-0.2.1-r1.ebuild new file mode 100644 index 000000000000..3b237a98a4a6 --- /dev/null +++ b/x11-terms/multi-aterm/multi-aterm-0.2.1-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +DESCRIPTION="rxvt compatible terminal emulator with transparency and tab support" +HOMEPAGE="http://www.nongnu.org/materm/materm.html" +SRC_URI="http://www.nongnu.org/materm/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86" +IUSE="cjk debug jpeg png" + +RDEPEND="x11-libs/libXpm + jpeg? ( virtual/jpeg ) + png? ( media-libs/libpng )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +DOCS=( AUTHORS ChangeLog NEWS TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PV}-initialize-vars.patch \ + "${FILESDIR}"/${P}-display-security-issue.patch \ + "${FILESDIR}"/${P}-libpng14.patch + + sed -i \ + -e 's:png_check_sig:png_sig_cmp:' \ + configure || die +} + +src_configure() { + econf \ + --enable-transparency \ + --enable-fading \ + --enable-xterm-scroll \ + --enable-half-shadow \ + --enable-graphics \ + --enable-mousewheel \ + --with-x \ + --with-xpm=/usr \ + $(use_enable cjk kanji) \ + $(use_enable debug) \ + $(use_enable jpeg) \ + $(use_enable png) +} + +src_compile() { + emake CFLAGS="${CFLAGS}" +} + +src_install() { + default + newdoc doc/TODO TODO.2 +} -- cgit v1.2.3