summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-05-29 13:10:44 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-05-29 13:10:44 +0000
commit3ecbb4dbd75dba5f7aaa5d52d90b09a98e266d47 (patch)
treef59e3e969ea3b1d9f9bf1ec084953d7f9107954a /x11-wm
parentVersion bump. (diff)
downloadhistorical-3ecbb4dbd75dba5f7aaa5d52d90b09a98e266d47.tar.gz
historical-3ecbb4dbd75dba5f7aaa5d52d90b09a98e266d47.tar.bz2
historical-3ecbb4dbd75dba5f7aaa5d52d90b09a98e266d47.zip
Fix parallel build wrt bug 248680, don't strip files wrt bug 299918 + other QA fixes
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/amiwm/ChangeLog13
-rw-r--r--x11-wm/amiwm/Manifest15
-rw-r--r--x11-wm/amiwm/amiwm-0.20_p48.ebuild49
-rw-r--r--x11-wm/amiwm/files/amiwm-0.20_p48-gentoo.diff188
4 files changed, 229 insertions, 36 deletions
diff --git a/x11-wm/amiwm/ChangeLog b/x11-wm/amiwm/ChangeLog
index 658af32cec1e..d3808c8c6237 100644
--- a/x11-wm/amiwm/ChangeLog
+++ b/x11-wm/amiwm/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for x11-wm/amiwm
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-wm/amiwm/ChangeLog,v 1.10 2009/12/27 13:33:41 flameeyes Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/amiwm/ChangeLog,v 1.11 2010/05/29 13:10:44 xarthisius Exp $
+
+ 29 May 2010; Kacper Kowalik <xarthisius@gentoo.org> amiwm-0.20_p48.ebuild,
+ +files/amiwm-0.20_p48-gentoo.diff:
+ Fix parallel build wrt bug 248680, don't strip files wrt bug 299918.
+ Thanks
+ Diego for reporting.
+ Fix install directories, respect CC and user flags, multilib-strict.
+ Fix incompatible implicit declaration of built-in function.
+ Update dependencies.
27 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
amiwm-0.20_p48.ebuild:
diff --git a/x11-wm/amiwm/Manifest b/x11-wm/amiwm/Manifest
index b5824c36c080..7de0760a8e9c 100644
--- a/x11-wm/amiwm/Manifest
+++ b/x11-wm/amiwm/Manifest
@@ -1,15 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX amiwm-0.20_p48-flex.patch 250 RMD160 0ebc4ddff2c2672c7d0acd8a1bdff60a2e7065e7 SHA1 c84e18bf8cb6b7e7a884bc0354f9f692f1550abc SHA256 fe68aa7053ea125c7988d4c9a5678a3926152869bcf67409725eaf17e01b9dbe
+AUX amiwm-0.20_p48-gentoo.diff 5877 RMD160 180f3e839bc276a5202641c81899cee0d385d16d SHA1 0b0c636f78ef4f9839c054a815a8ecbe05610417 SHA256 cde1d1753efede6188b5e9f6ccee226df6b9b034100592ba951ab64eb54170cf
DIST amiwm0.20pl48.tar.gz 141542 RMD160 abb5922a84501a28a73684c9e056dba6ac6969b7 SHA1 6cf5f7197403a9519ea1f3b272e67a8de4fdca43 SHA256 a354d67de725ae07ca54284bf1f9ba4cec6874017f2391fbeb465ca84aa827d3
-EBUILD amiwm-0.20_p48.ebuild 1112 RMD160 7fce7bc595147ab2da58e556ea57e8b2d5616402 SHA1 0c48773bae4d2e0cfe111989b98a2188a128104e SHA256 5c4f1b628d20008f54707a13668c026f6fc2f37e9da74eccfb5a539bbb989aa5
-MISC ChangeLog 1314 RMD160 adb6666538fc8d2e63b70ae72ed5b89efd7fdadf SHA1 d06a8694b9e5062912b29d930080b2ee813fdef6 SHA256 914548ecd5626689bc8de777f46b633cab8e9e22a4fc5ad005c516413981c793
+EBUILD amiwm-0.20_p48.ebuild 1255 RMD160 2198134c5cd81fe8173952e347e3f22b8f45dddb SHA1 ca524e31f5a5616b56355027b3196f926c7b5da2 SHA256 acefa004aba539cba005554361352cee2875936f4da6fc17ec5b7214af3610d3
+MISC ChangeLog 1689 RMD160 54568f1e6a71399370b446e4004c9341d18dfca3 SHA1 95b03c99c6be6ad4d99bc3ae10c466d008696a2a SHA256 60f5304754cf164ab5b9a7e2796148db472fc921cb869e18639e3160e777a63b
MISC metadata.xml 420 RMD160 29dd3d5d13127b2dddef6eac8c71ab2048dcf9ed SHA1 4c7bd4d5e98d38da3770ebc641167ff7eff956ab SHA256 34e9a598a8736ffaa958d2aa32f7929b4e617728ddadea3e3adc0e762c31e40b
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iEYEARECAAYFAks3YjoACgkQAiZjviIA2XiYDQCgr5KTa1HyJqyua3Qh3YBJP7R4
-BOsAoMzGeC7Uwhw8Pg5foGIw/HQknXJw
-=7sSU
------END PGP SIGNATURE-----
diff --git a/x11-wm/amiwm/amiwm-0.20_p48.ebuild b/x11-wm/amiwm/amiwm-0.20_p48.ebuild
index 351204a3659c..2717b0f8dfb8 100644
--- a/x11-wm/amiwm/amiwm-0.20_p48.ebuild
+++ b/x11-wm/amiwm/amiwm-0.20_p48.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-wm/amiwm/amiwm-0.20_p48.ebuild,v 1.10 2009/12/27 13:33:41 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/amiwm/amiwm-0.20_p48.ebuild,v 1.11 2010/05/29 13:10:44 xarthisius Exp $
-inherit eutils
+EAPI="2"
+
+inherit eutils multilib toolchain-funcs
MY_P="${PN}${PV/_p/pl}"
DESCRIPTION="Windowmanager ala Amiga(R) Workbench(R)"
@@ -14,39 +16,42 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
-RDEPEND="x11-libs/libX11
+COMMON_DEPEND="x11-libs/libX11
x11-libs/libXmu
x11-libs/libXext"
-DEPEND="${RDEPEND}
+
+RDEPEND="${COMMON_DEPEND}
+ media-gfx/xloadimage
+ x11-apps/xrdb
+ x11-apps/xsetroot
+ x11-terms/xterm"
+DEPEND="${COMMON_DEPEND}
x11-proto/xproto
x11-proto/xextproto"
S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-flex.patch #110169
+pkg_setup() {
+ tc-export CC
}
-src_compile() {
- econf
- # bug #248680
- emake -j1 || die "build failed"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flex.patch \
+ "${FILESDIR}"/${P}-gentoo.diff
+ sed -i -e "s:\$(exec_prefix)/lib:\$(exec_prefix)/$(get_libdir):" \
+ Makefile.in || die
+ sed -i -e "s:/bin/ksh:/bin/sh:g" Xsession{,2}.in || die
}
src_install() {
- dodir /usr/bin
- einstall || die
-
- rm "${D}"/usr/bin/requestchoice
- dosym /usr/lib/amiwm/requestchoice /usr/bin/requestchoice
-
- dosed /usr/lib/amiwm/{Xinitrc,Xsession,Xsession2}
+ emake DESTDIR="${D}" install || die
- dodoc INSTALL README*
+ dodoc README* || die
exeinto /etc/X11/Sessions
- echo "/usr/bin/amiwm" > "${T}"/amiwm
+ cat <<- EOF > "${T}"/amiwm
+ #!/bin/sh
+ exec /usr/bin/amiwm
+ EOF
doexe "${T}"/amiwm
}
diff --git a/x11-wm/amiwm/files/amiwm-0.20_p48-gentoo.diff b/x11-wm/amiwm/files/amiwm-0.20_p48-gentoo.diff
new file mode 100644
index 000000000000..7b13b66a08aa
--- /dev/null
+++ b/x11-wm/amiwm/files/amiwm-0.20_p48-gentoo.diff
@@ -0,0 +1,188 @@
+Fix parallel build, don't strip binaries, respect CC LDFLAGS, fix install dirs
+Fix incompatible implicit declaration of built-in function {strlen,memset,strcpy}
+
+http://bugs.gentoo.org/show_bug.cgi?id=248680
+http://bugs.gentoo.org/show_bug.cgi?id=299918
+
+--- Makefile.in
++++ Makefile.in
+@@ -1,7 +1,6 @@
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+ SHELL = /bin/sh
+-CC = @CC@
+ LEX = @LEX@
+ YACC = @YACC@
+ CFLAGS = @CFLAGS@
+@@ -14,7 +13,7 @@
+ exec_prefix = @exec_prefix@
+ bindir = $(exec_prefix)/bin
+ libdir = $(exec_prefix)/lib
+-mandir = $(prefix)/man
++mandir = $(prefix)/share/man
+ INSTALL = @INSTALL@
+ LN_S = @LN_S@
+ RM = -rm -f
+@@ -44,8 +43,14 @@
+
+ AMIWM_HOME = $(libdir)/amiwm
+
++.PHONY: yaccs all clean lib lexs
++
++.SUFFIXES: .c
++
+ all : $(PROGS) $(MODULES)
+
++$(OBJS): lexs
++
+ lib :
+ @( cd libami; $(MAKE) libami.a )
+
+@@ -64,71 +69,63 @@
+ ppmtoinfo.o : ppmtoinfo.c
+ $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -DAMIWM_HOME=\"$(AMIWM_HOME)\" $<
+
+-gram.h gram.c: gram.y
+- $(YACC) $(YFLAGS) gram.y
+- mv y.tab.c gram.c
+- mv y.tab.h gram.h
++yaccs: gram.c kbdmodule.c
++lexs: yaccs lex.c kbdlexer.c
++
++%.c: %.y
++ $(YACC) $(YFLAGS) $< -o $@
+
+ lex.c : lex.l
+ $(LEX) -t lex.l > lex.c
+
+-kbdmodule.h kbdmodule.c: kbdmodule.y
+- $(YACC) $(YFLAGS) kbdmodule.y
+- mv y.tab.c kbdmodule.c
+- mv y.tab.h kbdmodule.h
+-
+ kbdlexer.c : kbdlexer.l
+ $(LEX) -t kbdlexer.l > kbdlexer.c
+
+-install : $(PROGS) $(MODULES) Xsession Xsession2 Xinitrc amiwm-init
+- -mkdir -p $(AMIWM_HOME)
+- $(INSTALL) -s requestchoice $(AMIWM_HOME)/requestchoice
+- $(INSTALL) -s executecmd $(AMIWM_HOME)/executecmd
++install : Xsession Xsession2 Xinitrc amiwm-init
++ $(INSTALL) -D requestchoice $(DESTDIR)$(AMIWM_HOME)/requestchoice
++ $(INSTALL) executecmd $(DESTDIR)$(AMIWM_HOME)/executecmd
+ for module in $(MODULES); do \
+ if [ "$$module" = "Background" ]; then \
+- $(INSTALL) $$module $(AMIWM_HOME)/$$module; \
++ $(INSTALL) $$module $(DESTDIR)$(AMIWM_HOME)/$$module; \
+ else \
+- $(INSTALL) -s $$module $(AMIWM_HOME)/$$module; \
++ $(INSTALL) $$module $(DESTDIR)$(AMIWM_HOME)/$$module; \
+ fi \
+ done
+- $(INSTALL) -m 644 system.amiwmrc $(AMIWM_HOME)/system.amiwmrc
+- $(INSTALL) -m 644 def_tool.info $(AMIWM_HOME)/def_tool.info
+- $(INSTALL) -m 644 system.map $(AMIWM_HOME)/system.map
+- $(INSTALL) -m 644 magicwb.map $(AMIWM_HOME)/magicwb.map
+- $(INSTALL) -m 644 schwartz.map $(AMIWM_HOME)/schwartz.map
+- $(INSTALL) -m 755 Xsession $(AMIWM_HOME)/Xsession
+- $(INSTALL) -m 755 Xsession2 $(AMIWM_HOME)/Xsession2
+- $(INSTALL) -m 755 Xinitrc $(AMIWM_HOME)/Xinitrc
+- $(INSTALL) -m 755 amiwm-init $(AMIWM_HOME)/amiwm-init
+- $(INSTALL) -s amiwm $(bindir)/amiwm
+- $(INSTALL) -s ppmtoinfo $(bindir)/ppmtoinfo
+- $(RM) $(bindir)/requestchoice
+- $(LN_S) $(AMIWM_HOME)/requestchoice $(bindir)/requestchoice
+- -mkdir -p $(mandir)/man1
+- $(INSTALL) -m 644 amiwm.1 $(mandir)/man1/amiwm.1
++ $(INSTALL) -m 644 system.amiwmrc $(DESTDIR)$(AMIWM_HOME)/system.amiwmrc
++ $(INSTALL) -m 644 def_tool.info $(DESTDIR)$(AMIWM_HOME)/def_tool.info
++ $(INSTALL) -m 644 system.map $(DESTDIR)$(AMIWM_HOME)/system.map
++ $(INSTALL) -m 644 magicwb.map $(DESTDIR)$(AMIWM_HOME)/magicwb.map
++ $(INSTALL) -m 644 schwartz.map $(DESTDIR)$(AMIWM_HOME)/schwartz.map
++ $(INSTALL) -m 755 Xsession $(DESTDIR)$(AMIWM_HOME)/Xsession
++ $(INSTALL) -m 755 Xsession2 $(DESTDIR)$(AMIWM_HOME)/Xsession2
++ $(INSTALL) -m 755 Xinitrc $(DESTDIR)$(AMIWM_HOME)/Xinitrc
++ $(INSTALL) -m 755 amiwm-init $(DESTDIR)$(AMIWM_HOME)/amiwm-init
++ $(INSTALL) -D amiwm $(DESTDIR)$(bindir)/amiwm
++ $(INSTALL) ppmtoinfo $(DESTDIR)$(bindir)/ppmtoinfo
++ $(RM) $(DESTDIR)$(bindir)/requestchoice
++ $(LN_S) $(DESTDIR)$(AMIWM_HOME)/requestchoice $(DESTDIR)$(bindir)/requestchoice
++ $(INSTALL) -D -m 644 amiwm.1 $(DESTDIR)$(mandir)/man1/amiwm.1
+
+ cde-install : Xresources.amiwm Amilogo.bm Amilogo.pm
+- -mkdir -p $(DT_DIR)/config/C/Xresources.d
+- $(INSTALL) -m 644 Xresources.amiwm $(DT_DIR)/config/C/Xresources.d/Xresources.amiwm
+- -mkdir -p $(DT_DIR)/appconfig/icons/C
+- $(INSTALL) -m 644 Amilogo.bm $(DT_DIR)/appconfig/icons/C/Amilogo.bm
+- $(INSTALL) -m 644 Amilogo.pm $(DT_DIR)/appconfig/icons/C/Amilogo.pm
++ $(INSTALL) -D -m 644 Xresources.amiwm $(DESTDIR)$(DT_DIR)/config/C/Xresources.d/Xresources.amiwm
++ $(INSTALL) -D -m 644 Amilogo.bm $(DESTDIR)$(DT_DIR)/appconfig/icons/C/Amilogo.bm
++ $(INSTALL) -m 644 Amilogo.pm $(DESTDIR)$(DT_DIR)/appconfig/icons/C/Amilogo.pm
+
+
+ amiwm : $(OBJS) lib
+- $(CC) -o amiwm $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o amiwm $(OBJS) $(LIBS)
+
+ requestchoice : requestchoice.o lib
+- $(CC) -o requestchoice requestchoice.o $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o requestchoice requestchoice.o $(LIBS)
+
+ executecmd : executecmd.o lib
+- $(CC) -o executecmd executecmd.o $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o executecmd executecmd.o $(LIBS)
+
+ Keyboard : kbdmodule.o kbdlexer.o lib
+- $(CC) -o Keyboard kbdmodule.o kbdlexer.o $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o Keyboard kbdmodule.o kbdlexer.o $(LIBS)
+
+ ppmtoinfo : ppmtoinfo.o
+- $(CC) -o ppmtoinfo ppmtoinfo.o -lm
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ppmtoinfo ppmtoinfo.o -lm
+
+ clean :
+ $(RM) core $(PROGS) $(LIBAMI) *.o libami/*.o
+--- icc.c
++++ icc.c
+@@ -1,3 +1,4 @@
++#include <string.h>
+ #include "drawinfo.h"
+ #include "screen.h"
+ #include "icc.h"
+--- rc.c
++++ rc.c
+@@ -1,7 +1,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <X11/Xmu/CharSet.h>
+-
++#include <string.h>
+ #include "alloc.h"
+ #include "prefs.h"
+ #include "drawinfo.h"
+--- libami/drawinfo.c
++++ libami/drawinfo.c
+@@ -1,7 +1,7 @@
+ #include <X11/Xlib.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+-
++#include <string.h>
+ #include "alloc.h"
+ #include "drawinfo.h"
+
+--- libami/mdscreen.c
++++ libami/mdscreen.c
+@@ -1,3 +1,4 @@
++#include <string.h>
+ #include "libami.h"
+ #include "module.h"
+
+--- libami/error.c
++++ libami/error.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <string.h>
+ #include "libami.h"
+
+ #ifndef AMIGAOS