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 /x11-terms/mrxvt |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-terms/mrxvt')
-rw-r--r-- | x11-terms/mrxvt/Manifest | 7 | ||||
-rw-r--r-- | x11-terms/mrxvt/files/mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch | 13 | ||||
-rw-r--r-- | x11-terms/mrxvt/files/mrxvt-0.5.4-libpng14.patch | 33 | ||||
-rw-r--r-- | x11-terms/mrxvt/metadata.xml | 16 | ||||
-rw-r--r-- | x11-terms/mrxvt/mrxvt-0.5.4.ebuild | 118 |
5 files changed, 187 insertions, 0 deletions
diff --git a/x11-terms/mrxvt/Manifest b/x11-terms/mrxvt/Manifest new file mode 100644 index 000000000000..79b340f52cba --- /dev/null +++ b/x11-terms/mrxvt/Manifest @@ -0,0 +1,7 @@ +AUX mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch 380 SHA256 1b4e5c18d5c2ed6c9e1f198a97e058016b8e6589e1690d494c01bc899c010f30 SHA512 703d32e803d73e21ba5c746bcea94331c43e53e6f1b84a86271e94ae4cc59e6c4e8d4e86cbc3e29d594aec04881db57f587b1e94c42249b2beef08e718b69a36 WHIRLPOOL debf23f883f87477f770659763100e655520c67941552900826aefcbbaf665e5e73098c7c902dbd0890b12583327c17d04f5d2e02a30eaca481088871ee9f51d +AUX mrxvt-0.5.4-libpng14.patch 841 SHA256 3d37317e91085a8e0ae080590f41bbfbc8159a6b932fc6bc0b9fb6351ef28ba7 SHA512 469f2f40b5f09e645be2f59166787b01eb76215e2810b9804d088ed271f743f8d1850e4ed60795674e5d041364e465da8e1f2159131a5b48cab015a106b383c6 WHIRLPOOL 89f50ebfed2760ff395d403edda2616ed26504f028f04d14a15d27ac54645d47c8510dd5abfca6937fef954bb6588bfb0c9cd5520e8da599b487bc403775ca50 +DIST mrxvt-0.5.4.tar.gz 603978 SHA256 f403ad5a908fcd38a55ed0a7e1b85584cb77be8781199653a39b8af1a9ad10d7 SHA512 572bb4dda9f9b9dcb597f3185922646523bce34003f536acca82992f68f8f7c1a5f2778d626f805ea2cd061e8451fbbf12010e5d655221f76b83440825c80992 WHIRLPOOL 770acc0b03e13e113bfe01f56e9ec58ddba6ae2ee989236836f4dd557dfa89334af8404e3fb5a08e1ffea989852f89871004eb6bd46a2d0b2b9830aaf1dc0455 +EBUILD mrxvt-0.5.4.ebuild 3470 SHA256 6cf4e09e5662201003563cec6bff54903292b3786aeb0bd6e2448f9ee766f052 SHA512 1e16e4cfd43d662eb6e3e6e94515985e40f5eff169dfb54d91b3892d06fea8a965df62f29ca88bef9213bb6fd57c3132882cdc66fb78c919d881cc29a35b4698 WHIRLPOOL 4a1e4890946ad9957efb8653d69c6348bcaa770985e0b66c1ee4ebd29480b288669ec548678f4481936b1d43f0dd53fa2069f05e4688738504f15d7e8ffeeb36 +MISC ChangeLog 2265 SHA256 4cdae9564fd66c1906df3b78851dd592a11b43fce910c8e901515d204fe5e9e6 SHA512 689d4262b40497870c65550883e920da74700a60be92ea3c3f57cf0d5116c4c752eeb22ef1bc9ce21f4c972b13102c4d8130dd2e3118c5283844ec7a16ff0f7e WHIRLPOOL 980043dafb94e05c34d63f800847d5999895e9bd496b3ff7451f1b99545af511159d96a1845127d46b8525496a9308c5bbe2bd10639c1ce4e2a4536e20d42a0f +MISC ChangeLog-2015 11302 SHA256 218e53716e2fa783ac471cd3fa520d77694e22b6464f9685f8fe36160f7da41b SHA512 a726c23ce34d629d1bc7d134da10d07cdec430812058d4f73ac0e9d83131b20bea57103248658e08a2766ab84b848252c3b6d031265fa86258970075700e2623 WHIRLPOOL c75c3c3a69f582c2c7f106c5416d99748f0af285b4e60b8304a3e3ae3f2a0e5cc75679e1d5aea67061672473b9f8ba64a69d9d79e707cd7d8745b857d1d0aade +MISC metadata.xml 478 SHA256 2d7e45fccbbd7bf3351ec74f1409784c7519652515c1dbcd9d8bd68f3a21d708 SHA512 fb26a82c0a26b3e23e9307ab811cc05fc6affce3bdf705d9417d8f10de7c8448b506414da9134888f4fc3c6fbf4d261646b77916730df711a0e86952a352ce72 WHIRLPOOL 98b09d7a24ecd48b25aae8dc9c022aa26b4fa5903c6783e474b013beb72dadc7850616df95b056ff45a539bca8602cb346fab92ad78f3fb037a73092df2074d4 diff --git a/x11-terms/mrxvt/files/mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch b/x11-terms/mrxvt/files/mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch new file mode 100644 index 000000000000..a52a10269bc1 --- /dev/null +++ b/x11-terms/mrxvt/files/mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch @@ -0,0 +1,13 @@ +Index: src/tabbar.c +=================================================================== +--- src/tabbar.c (revision 337) ++++ src/tabbar.c (working copy) +@@ -1327,7 +1327,7 @@ + if( p.we_wordc > 1) + rxvt_msg( DBG_ERROR, DBG_TABBAR, + "Too many words when expanding %s\n", cwdOption ); +- else ++ else if( NOT_NULL( *p.we_wordv ) ) + { + filename = *p.we_wordv; + diff --git a/x11-terms/mrxvt/files/mrxvt-0.5.4-libpng14.patch b/x11-terms/mrxvt/files/mrxvt-0.5.4-libpng14.patch new file mode 100644 index 000000000000..a475b70685dc --- /dev/null +++ b/x11-terms/mrxvt/files/mrxvt-0.5.4-libpng14.patch @@ -0,0 +1,33 @@ +http://repos.archlinux.org/wsvn/packages/mrxvt/trunk/libpng14.patch + +--- configure.ac ++++ configure.ac +@@ -952,7 +952,7 @@ + if test "x$support_png" = "xyes"; then + AC_CHECK_LIB( + png, +- png_check_sig, ++ png_sig_cmp, + [], + [support_png=no], + [-lz -lm] +--- src/mpng.c ++++ src/mpng.c +@@ -83,7 +83,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; + } +@@ -113,7 +113,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/mrxvt/metadata.xml b/x11-terms/mrxvt/metadata.xml new file mode 100644 index 000000000000..851e6fdb2596 --- /dev/null +++ b/x11-terms/mrxvt/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <use> + <flag name="menubar">Enable mrxvt menubar</flag> + <flag name="utempter">REcords user logins. Useful on multi-user + systems</flag> + </use> + <upstream> + <remote-id type="sourceforge">materm</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-terms/mrxvt/mrxvt-0.5.4.ebuild b/x11-terms/mrxvt/mrxvt-0.5.4.ebuild new file mode 100644 index 000000000000..cb411ad2200f --- /dev/null +++ b/x11-terms/mrxvt/mrxvt-0.5.4.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit autotools eutils + +DESCRIPTION="Multi-tabbed rxvt clone with XFT, transparent background and CJK support" +HOMEPAGE="http://materm.sourceforge.net/" +SRC_URI="mirror://sourceforge/materm/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~mips ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" + +LINGUAS_IUSE="linguas_el linguas_ja linguas_ko linguas_th linguas_zh_CN linguas_zh_TW" +IUSE="debug png jpeg session truetype menubar utempter xpm ${LINGUAS_IUSE}" + +RDEPEND="png? ( media-libs/libpng ) + utempter? ( sys-libs/libutempter ) + jpeg? ( virtual/jpeg ) + truetype? ( x11-libs/libXft + media-libs/fontconfig + media-libs/freetype + elibc_uclibc? ( dev-libs/libiconv ) ) + x11-libs/libX11 + x11-libs/libXt + xpm? ( x11-libs/libXpm ) + x11-libs/libXrender" + +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + epatch "${FILESDIR}"/${P}-001-fix-segfault-when-wd-empty.patch \ + "${FILESDIR}"/${P}-libpng14.patch + + eautoreconf + + if use elibc_uclibc && use truetype; then + # It is stated in the README "Multichar support under XFT requires GNU iconv" + sed -i -e 's/LIBS = @LIBS@/LIBS = @LIBS@ -liconv/' "${S}/src/Makefile.in" + fi +} + +src_configure() { + local myconf + + # if you want to pass any other flags, use EXTRA_ECONF. + if use linguas_el ; then + myconf="${myconf} --enable-greek" + fi + if use linguas_ja ; then + # --with-encoding=sjis + myconf="${myconf} --enable-kanji --with-encoding=eucj" + fi + if use linguas_ko ; then + myconf="${myconf} --enable-kr --with-encoding=kr" + fi + if use linguas_th ; then + myconf="${myconf} --enable-thai" + fi + if use linguas_zh_CN ; then + # --with-encoding=gbk + myconf="${myconf} --enable-gb --with-encoding=gb" + fi + if use linguas_zh_TW ; then + myconf="${myconf} --enable-big5 --with-encoding=big5" + fi + + # 2006-03-13 gi1242: mrxvt works best with TERM=rxvt AND correctly set + # termcap / terminfo entries. If the rxvt termcap / terminfo entries are + # messed up then then it's better to set TERM=xterm. + # + # Provide support for this by setting the or RXVT_TERM environment variables + # before emerging, as done in the rxvt ebuild. + + if [[ -n ${RXVT_TERM} ]]; then + myconf="${myconf} --with-term=${RXVT_TERM}" + fi + + econf \ + --enable-everything \ + --with-atab-extra=25 \ + $(use_enable debug) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable xpm) \ + $(use_enable session sessionmgr) \ + $(use_enable truetype xft) \ + $(use_enable utempter) \ + $(use_enable menubar) \ + ${myconf} +} + +src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}"/usr/share/doc/${PF} install + # Give mrxvt perms to update utmp + fowners root:utmp /usr/bin/mrxvt + fperms g+s /usr/bin/mrxvt + dodoc AUTHORS CREDITS ChangeLog FAQ NEWS README* TODO +} + +pkg_postinst() { + if [[ -z $RXVT_TERM ]]; then + einfo + einfo "If you experience problems with curses programs, then this is" + einfo "most likely because of incorrectly set termcap / terminfo" + einfo "entries. To fix this you can dry and run (as user)" + einfo " tic /usr/share/doc/${P}/etc/mrxvt.terminfo" + einfo "Alternately, run the offending programs with TERM=xterm." + einfo + einfo "To emerge mrxvt with TERM=xterm by default, set the RXVT_TERM" + einfo "environment variable to 'xterm', or your desired default" + einfo "terminal name. Alternately you can put 'Mrxvt.termName: xterm'" + einfo "in your ~/.mrxvtrc, or /etc/mrxvt/mrxvtrc." + einfo + fi +} |