Here is an update for wmtz. dockapps.net provides an old version, i
preferred to use what they have in their git head, which is already
provided by Gentoo, because this new version uses libdockapp, this
avoids duplicating patches in wmgeneral.
Port-wise:
- FIX_EXTRACT_PERMISSIONS is not needed anymore
- their install target is still not good, so keep our own
Testing:
It builds and runs fine on amd64 and macppc with the provided sample
configuration file.
Comments/feedback are welcome,
Charlène.
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/wmtz/Makefile,v
retrieving revision 1.24
diff -u -p -u -p -r1.24 Makefile
--- Makefile 12 Jul 2019 20:51:24 -0000 1.24
+++ Makefile 1 Feb 2021 13:24:26 -0000
@@ -2,22 +2,28 @@
COMMENT= wm-dockapp; displays the time in different time zones
-DISTNAME= wmtz-0.7
-REVISION= 3
+DISTNAME= wmtz-0.7_p20150816
+PKGNAME= ${DISTNAME:S/_p/./}
+
CATEGORIES= x11 x11/windowmaker
-FIX_EXTRACT_PERMISSIONS=Yes
HOMEPAGE= http://www.dockapps.net/wmtz
# GPL
PERMIT_PACKAGE= Yes
-WANTLIB= X11 Xext Xpm c m
+WANTLIB= X11 Xext Xpm c dockapp m
+
+# dockapps.net only provides an old tarball without libdockapp support.
+MASTER_SITES= http://distfiles.gentoo.org/distfiles/
-MASTER_SITES= http://www.dockapps.net/download/
+LIB_DEPENDS= devel/libdockapp>=0.7.3
-MAKE_FLAGS= CC="${CC}"
+MAKE_ENV+= CC="${CC}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
NO_TEST= Yes
+
+CFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include
+LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib
WRKSRC= ${WRKDIST}/wmtz
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/wmtz/distinfo,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 distinfo
--- distinfo 18 Jan 2015 03:16:04 -0000 1.4
+++ distinfo 1 Feb 2021 13:24:26 -0000
@@ -1,2 +1,2 @@
-SHA256 (wmtz-0.7.tar.gz) = ywnmSpgjs9px5ULXzGbmy9ATWAm+4eVl0YrNzwVlgjo=
-SIZE (wmtz-0.7.tar.gz) = 26350
+SHA256 (wmtz-0.7_p20150816.tar.gz) = Dvi7e3qRLm8vLOiOblv4CAzNlUv2JYikNTKzQzK6Lls=
+SIZE (wmtz-0.7_p20150816.tar.gz) = 19310
Index: patches/patch-wmgeneral_list_h
===================================================================
RCS file: patches/patch-wmgeneral_list_h
diff -N patches/patch-wmgeneral_list_h
--- patches/patch-wmgeneral_list_h 3 May 2017 19:29:45 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-wmgeneral_list_h,v 1.1 2017/05/03 19:29:45 jca Exp $
---- wmgeneral/list.h.orig
-+++ wmgeneral/list.h
-@@ -29,9 +29,7 @@ Boston, MA 02111-1307, USA. */
- #ifndef __LIST_H_
- #define __LIST_H_
-
--#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
--# define INLINE inline
--#else
-+#if 1
- # define INLINE
-
No comments:
Post a Comment