x11-wm/ctwm: Old

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
This commit is contained in:
Jeroen Roovers
2019-07-25 08:35:13 +02:00
parent 88efc473af
commit d94f2b0fd3
3 changed files with 0 additions and 72 deletions

View File

@@ -1,3 +1,2 @@
DIST ctwm-4.0.1.tar.xz 656776 BLAKE2B 37d6011d04f8d64552a86608a4d3867e6e1b0135f45457886daee6be1ae23ca1e3079caa1a63befd1d17bcc640e40ba0f1ed92e0a0caf2c6182f6e282f012bf7 SHA512 8c5c0bf868ba36cf5acca1ac5dbcea9327f63892698ace5086fabe563632acbb578cefea44ac3de91dc15afdbdce0370169e14156525507b90dc8aca8d305bc6
DIST ctwm-4.0.2.tar.xz 672608 BLAKE2B b4dc26b9d6ba5aba0a5f1f71363c25065aec0d4d4be7b9772f51117460062f5d7ea17d338e1ad9a89cf1213ca2125a1d203417bdc3f6c95a9b9969477b443a40 SHA512 445151f12084acd44bcf8a7d895e29363411a1a663b93e098fa9db5b96ae5cb43921eaf0695026aff2196117b810b96712a60570f57d6dabbee7fba34d5bd57f
DIST ctwm-4.0.3.tar.xz 683684 BLAKE2B d16a47a5cd91ab5305da3c02f874d5ad1c71e2c8a3664cd33d5fa0781f4fdc2613407f5b43b4da16bcf89e323eb34b0888c5dbd02598746195991e7870aba0ef SHA512 f9bb2f8f28a050cce0fc2f1f4e00e79acd7c54055016d8483e045d8f5fa9829f8f5d92bb53f0c1d9500f97d6f52cd827ddd15515c84451ea03551025a8ab831d

View File

@@ -1,50 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils eutils flag-o-matic toolchain-funcs
DESCRIPTION="A clean, light window manager"
HOMEPAGE="http://ctwm.org/"
SRC_URI="${HOMEPAGE}dist/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
RDEPEND="
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt
"
DEPEND="
${RDEPEND}
app-arch/xz-utils
app-text/rman
virtual/jpeg
x11-base/xorg-proto
"
PATCHES=(
# http://bazaar.launchpad.net/~ctwm/ctwm/trunk/revision/597
"${FILESDIR}"/${P}-m4.patch
)
src_prepare() {
cmake-utils_src_prepare
# implicit 'isspace'
sed -i parse.c -e "/<stdio.h>/ a#include <ctype.h>" || die
}
src_install() {
cmake-utils_src_install
mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
mv "${D}"/usr/share/examples/${PN} "${D}"/usr/share/doc/${PF}/examples || die
}

View File

@@ -1,21 +0,0 @@
=== modified file 'parse_m4.c'
--- ctwm-4.0.1____orig/parse_m4.c 2016-05-03 20:19:31 +0000
+++ ctwm-4.0.1____MaFu/parse_m4.c 2017-06-13 10:37:46 +0000
@@ -140,12 +140,15 @@
char client[MAXHOSTNAME], server[MAXHOSTNAME], *colon;
struct hostent *hostname;
char *vc, *color;
- static char tmp_name[] = "/tmp/ctwmrcXXXXXX";
+#define TMPLFILE "/tmp/ctwmrcXXXXXX"
+ static char tmp_name[sizeof(TMPLFILE)];
int fd;
FILE *tmpf;
char *user;
/* Create temp file */
+ strcpy(tmp_name, TMPLFILE);
+#undef TMPLFILE
fd = mkstemp(tmp_name);
if(fd < 0) {
perror("mkstemp failed in m4_defs");