Subject: Re: pkg/28977: a couple of problems with editors/emacs
To: NetBSD GNATS submissions and followups <gnats-bugs@netbsd.org>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: pkgsrc-bugs
Date: 01/16/2005 09:51:49
On Sat, 2005-01-15 at 20:31 -0500, Greg A. Woods wrote:
> [ On Sunday, January 16, 2005 at 00:49:16 (+0100), Julio M. Merino Vidal wrote: ]
> > Subject: Re: pkg/28977: a couple of problems with editors/emacs
> >
> > On Sat, 2005-01-15 at 23:24 +0000, Greg A. Woods wrote:
> > > @@ -67,6 +67,15 @@
> > >  
> > >  REPLACE_PERL=	lib-src/grep-changelog
> > >  
> > > +BUILD_TARGET=	all info
> > > +
> > > +# Note:  ${PKGVERSION} here is not the same as ${PKGVERSION} in the PLIST!
> > > +# The expression below is the one used in PLIST_SUBST.
> > > +#
> > > +EGDIR =		${PREFIX}/share/examples/emacs-${PKGVERSION:C/nb[0-9]*$//}
> > 
> > Couldn't this simply be:
> > 
> > EGDIR=	${PREFIX}/share/examples/${PKGNAME_NOREV}
> 
> No, because it needs to be in a version-specific directory if we're ever
> to properly support simultaneous installs (and views) of multiple emacs
> versions.

I think that you are missing the point that PKGNAME_NOREV _does_ include
the version number.  It only lacks the revision:

[dawn emacs] $ make show-var VARNAME=PKGNAME_NOREV
emacs-21.3

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/