Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2002 17:38:34 -0700 (PDT)
From:      Adam Weinberger <adam@vectors.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42348: update port: x11/decurs - fix install process
Message-ID:  <200209030038.g830cYFO066801@vectors.cx>

next in thread | raw e-mail | index | archive | help

>Number:         42348
>Category:       ports
>Synopsis:       update port: x11/decurs - fix install process
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 02 17:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Adam Weinberger
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD smacky.vectors.cx 4.6-STABLE FreeBSD 4.6-STABLE #6: Sun Sep 1 21:17:14 PDT 2002 root@smacky.vectors.cx:/usr/src/sys/compile/smacky i386


	
>Description:
	the install process required one to install most of the program manually,
	and then run from a specific dir. this provides a really really tiny
	wrapper and stuff.

	also i bumped the portrevision for the heck of it.
	
>How-To-Repeat:
	
>Fix:

	

	patches for the Makefile, the pkg-plist, and a file for the files/ dir.

--- makefile.patch begins here ---
--- Makefile.orig	Mon Sep  2 17:24:53 2002
+++ Makefile	Mon Sep  2 17:24:53 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	decurs
 PORTVERSION=	0.50.1
+PORTREVISION=	1
 CATEGORIES=	x11
 MASTER_SITES=	http://www.hut.fi/~pvsavola/files/
 
@@ -19,14 +20,12 @@
 USE_GNOME=	gtk12
 GNU_CONFIGURE=	yes
 
-# The Makefile doesn't provide a install target
-post-install:
-		@$(INSTALL) $(WRKSRC)/src/decurs $(X11BASE)/bin
-		@$(ECHO) "	################################################"
-		@$(ECHO) "	To use this program, please copy "
-		@$(ECHO) "	$(WRKSRC)/src/fonts/*.bdf"
-		@$(ECHO) "	somewhere else and invoke "$(PORTNAME)
-		@$(ECHO) "	from that directory."
-		@$(ECHO) "	################################################"
+do-install:
+		${INSTALL_PROGRAM} ${WRKSRC}/src/decurs ${X11BASE}/bin/decurs-real
+		@${MKDIR} ${DATADIR}
+		${INSTALL_DATA} ${WRKSRC}/src/cursor.bdf ${DATADIR}
+		${SED} -e "s|%%DECURS_DIR%%|${DATADIR}|; s|%%PREFIX%%|${X11BASE}|;" \
+			${FILESDIR}/decurs.exec > ${WRKSRC}/decurs.exec
+		${INSTALL_SCRIPT} ${WRKSRC}/decurs.exec ${X11BASE}/bin/decurs
 
 .include <bsd.port.mk>
--- makefile.patch ends here ---

--- pkg-plist.patch begins here ---
--- pkg-plist.orig	Mon Sep  2 17:22:30 2002
+++ pkg-plist	Mon Sep  2 17:22:13 2002
@@ -1 +1,4 @@
 bin/decurs
+bin/decurs-real
+share/decurs/cursor.bdf
+@dirrm share/decurs
--- pkg-plist.patch ends here ---

--- decurs.exec begins here ---
#!/bin/sh

cd %%DECURS_DIR%%
exec %%PREFIX%%/bin/decurs-real
--- decurs.exec ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209030038.g830cYFO066801>