Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 04:30:03 -0700 (PDT)
From:      Dominic Marks <dominic_marks@btinternet.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/41994: New Port: x11-fonts/artwiz-fonts
Message-ID:  <200208251130.g7PBU3Ds061100@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/41994; it has been noted by GNATS.

From: Dominic Marks <dominic_marks@btinternet.com>
To: Alan E <alane@geeksrus.net>
Cc: FreeBSD Bugs <freebsd-gnats-submit@freebsd.org>
Subject: Re: ports/41994: New Port: x11-fonts/artwiz-fonts
Date: Sun, 25 Aug 2002 12:22:42 +0100

 On Sun, Aug 25, 2002 at 06:45:33AM -0400, Alan E wrote:
 > On Sun, Aug 25, 2002 at 10:54:58AM +0100, Dominic Marks wrote:
 > 
 > > shar artwiz-fonts/* artwiz-fonts/files/* > artwiz-fonts.shar
 > 
 > What you really want is: 
 > 
 > 	shar $(find artwiz-fonts) >artwiz-fonts.shar
 
 Okay.
 
 > I also had to make some changes regarding installation and the
 > pkg-message file.
 > 
 > You should use ${INSTALL_DATA}, not ${CP} to install the font files.
 
 Yeah, thats sloppiness on my part, I've known about INSTALL_* for some
 time.
 
 > Also, you can't write outside of ${WRKDIR}. What if the user has the
 > ports dir NFS mounted read-only (like on the build clusters)?
 > 
 > So you have to go through some clumsy crap to modify pkg-message:
 >
 >
 > PKGMESSAGE=	${WRKDIR}/pkg-message
 > 
 > [then later]
 > 
 > .include <bsd.port.pre.mk>
 > 
 > post-install:
 > 	@${SED} 's|$${X11BASE}|${X11BASE}|g' \
 > 		${PKGDIR}/pkg-message >${PKGMESSAGE}
 > 	@${CAT} ${PKGMESSAGE}
 > 
 > .include <bsd.port.post.mk>
 > 
 > [isn't that fun and intuitive?]
 
 Hah. Very.
 
 > The reason that's so weird is that you have to get X11BASE and PKGDIR
 > defined before you can do the sed, but bsd.port.mk checks for the
 > existence (using .if exists) of PKGMESSAGE in the post section or else
 > if won't include it in the package. Hence the PITA.
 > 
 > I also cleaned up all the portlint warnings that were cleanable.
 
 Cheers!
 
 > -- 
 > AlanE
 > KDE-FreeBSD Team (http://freebsd.kde.org/)
 
 --
 Dominic

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?200208251130.g7PBU3Ds061100>