Date: Fri, 25 Jan 2002 07:04:27 -0800 (PST) From: <skv@FreeBSD.org> To: ports@FreeBSD.org Cc: portmgr@FreeBSD.org Subject: patch for ports/Mk/bsd.port.mk Message-ID: <200201251504.g0PF4Re43715@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
This patch is intended to: 1. set default MAN3PREFIX for perl ports 2. set correct values for DOCSDIR, EXAMPLESDIR, DATADIR and so on. for example, there is a situation when port databases/ruby-interbase installs docs into /usr/local/share/doc/interbase - it is an obvious mistake issued by using RUBY_DOCDIR. 3. add new variables PLIST_SUB - DOCSDIR, EXAMPLESDIR, DATADIR to define pkg-plist more easily and clearily. Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.395 diff -u -r1.395 bsd.port.mk --- bsd.port.mk 22 Dec 2001 17:13:38 -0000 1.395 +++ bsd.port.mk 25 Jan 2002 14:31:45 -0000 @@ -475,11 +475,11 @@ # %%PREFIX%% for ${PREFIX}, %%LOCALBASE%% for # ${LOCALBASE} and %%X11BASE%% for ${X11BASE}. # DOCSDIR - Name of the directory to install the packages docs in -# (default: ${PREFIX}/share/doc/${PORTNAME}). +# (default: ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}). # EXAMPLESDIR - Name of the directory to install the packages examples in -# (default: ${PREFIX}/share/examples/${PORTNAME}). +# (default: ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}). # DATADIR - Name of the directory to install the packages shared data -# in (default: ${PREFIX}/share/${PORTNAME}). +# in (default: ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}). # # Note that the install target will automatically add manpages (see # above) and also substitute special sequences of characters (delimited @@ -1379,6 +1379,7 @@ CONFIGURE_ARGS+= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" CONFIGURE_SCRIPT?= Makefile.PL USE_PERL5= yes +MAN3PREFIX?= ${PREFIX}/lib/perl5/${PERL_VERSION} .undef HAS_CONFIGURE .endif @@ -1495,9 +1496,14 @@ LDCONFIG_RUNLIST!= ${ECHO} ${LDCONFIG_PLIST} | ${SED} -e "s!%D!${PREFIX}!g" .endif -DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME} -EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME} -DATADIR?= ${PREFIX}/share/${PORTNAME} +DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLESDIR?= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +DATADIR?= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME} + +PLIST_DIRS= DOCSDIR="${DOCSDIR}" \ + EXAMPLESDIR="${EXAMPLESDIR}" \ + DATADIR="${DATADIR}" +PLIST_SUB+= ${PLIST_DIRS:S,DIR="${LOCALBASE}/,DIR=",} .MAIN: all Index: bsd.ruby.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.ruby.mk,v retrieving revision 1.65 diff -u -r1.65 bsd.ruby.mk --- bsd.ruby.mk 25 Dec 2001 17:02:32 -0000 1.65 +++ bsd.ruby.mk 25 Jan 2002 14:46:55 -0000 @@ -181,8 +181,8 @@ RUBY_ARCHLIBDIR?= ${RUBY_LIBDIR}/${RUBY_ARCH} RUBY_SITELIBDIR?= ${_RUBY_SITEDIR}/${RUBY_VER} RUBY_SITEARCHLIBDIR?= ${RUBY_SITELIBDIR}/${RUBY_ARCH} -RUBY_DOCDIR?= ${LOCALBASE}/share/doc/${RUBY_NAME} -RUBY_EXAMPLESDIR?= ${LOCALBASE}/share/examples/${RUBY_NAME} +RUBY_DOCDIR?= ${LOCALBASE}/share/doc/${RUBY_PKGNAMEPREFIX}${RUBY_NAME} +RUBY_EXAMPLESDIR?= ${LOCALBASE}/share/examples/${RUBY_PKGNAMEPREFIX}${RUBY_NAME} RUBY_ELISPDIR?= ${_RUBY_SYSLIBDIR}/ruby/elisp # PLIST -- Sergey Skvortsov 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?200201251504.g0PF4Re43715>