ports/74283: [PATCH] x11-wm/ratpoison: Add GDM support and calm portlint

Herve Quiroz hq at FreeBSD.org
Tue Nov 23 10:10:27 UTC 2004

>Number:         74283
>Category:       ports
>Synopsis:       [PATCH] x11-wm/ratpoison: Add GDM support and calm portlint
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 23 10:10:26 GMT 2004
>Originator:     Herve Quiroz
>Release:        FreeBSD 5.3-RELEASE i386
System: FreeBSD arabica.esil.univ-mrs.fr 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Mon Nov 15 17:58:51 CET 2004

- Add support for GDM sessions (only when WITH_GDM is defined)
- Calm portlint by tweaking a little Makefile and pkg-plist

NOTE: There's a problem with installed files when NOPORTDOCS is defined.
Actually the shared files are not installed but are still listed in the packing
list. I tried to have them installed but with no success so far so I guess we
will have to prefix them with %%PORTDOCS%% in pkg-plist so that the 'deinstall'
target does not complain.

Added file(s):
- files/ratpoison.desktop

Port maintainer (bkhl at elektrubadur.se) is cc'd.

Generated with FreeBSD Port Tools 0.63

--- ratpoison-1.3.0.patch begins here ---
Index: Makefile
RCS file: /var/fcvs/ports/x11-wm/ratpoison/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile	17 Jun 2004 14:28:27 -0000	1.9
+++ Makefile	23 Nov 2004 09:55:40 -0000
@@ -14,12 +14,27 @@
 MAINTAINER=	bkhl at elektrubadur.se
 COMMENT=	Simple window manager with no fat library dependencies
-MAN1=		ratpoison.1
+.if defined (WITH_GDM)
+	${SED} -e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/ratpoison.desktop \
+	  > ${WRKSRC}/ratpoison.desktop
+	${MKDIR} ${PREFIX}/etc/gdm/Sessions
+	${INSTALL_DATA} ${WRKSRC}/ratpoison.desktop ${PREFIX}/etc/dm/Sessions/
+PLIST_SUB+=	WITH_GDM="@comment "
 .if defined(NOPORTDOCS)
 INSTALL_TARGET=	SUBDIRS=src install-exec
+MAN1=		ratpoison.1
+INFO=		ratpoison
 .include <bsd.port.mk>
Index: pkg-plist
RCS file: /var/fcvs/ports/x11-wm/ratpoison/pkg-plist,v
retrieving revision 1.5
diff -u -u -r1.5 pkg-plist
--- pkg-plist	17 Jun 2004 10:56:42 -0000	1.5
+++ pkg-plist	23 Nov 2004 09:55:54 -0000
@@ -1,19 +1,17 @@
 @comment $FreeBSD: ports/x11-wm/ratpoison/pkg-plist,v 1.5 2004/06/17 10:56:42 jkoshy Exp $
-%%PORTDOCS%%@unexec install-info --delete %D/info/ratpoison %D/info/dir
-%%PORTDOCS%%@exec install-info %D/info/ratpoison.info %D/info/dir
-%%PORTDOCS%%@dirrm share/doc/ratpoison
- at dirrm share/ratpoison
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at dirrm %%DATADIR%%
Index: files/ratpoison.desktop
RCS file: files/ratpoison.desktop
diff -N files/ratpoison.desktop
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/ratpoison.desktop	23 Nov 2004 09:22:26 -0000
@@ -0,0 +1,3 @@
+[Desktop Entry]
--- ratpoison-1.3.0.patch ends here ---


More information about the freebsd-ports-bugs mailing list