freebsd-ports/japanese/linux-JM/Makefile
Mark Linimon 7d04f9f55e Fix up some conflicts issues: there was an edge case where samba-devel
conflicted with itself (only shows up in edge cases); there was a case
where two ports in japanese/ installed smbfs man pages -- but one
installed very old ones.  This seems to be the best conclusion from
the following convoluted PR:

PR:		ports/59599
Submitted by:	Koop Mast <einekoai@chello.nl>
Reviewed by:	eik, trevor, dwcjr, nakaji, at various times
2004-03-10 07:46:51 +00:00

82 lines
1.7 KiB
Makefile

# New ports collection makefile for: linux-JM japanized man pages
# Date created: 21 Jan 2001
# Whom: SADA Kenji <sada@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= linux-JM
PORTVERSION= ${DATESPEC}
CATEGORIES= japanese
MASTER_SITES= http://www.linux.or.jp/JM/per-pkg/
DISTFILES= ${DISTFILES_GNU} ${DISTFILES_OTHERS}
MAINTAINER= sada@FreeBSD.org
COMMENT= Japanese translated man pages by JM Project
CONFLICTS= ja-samba-2.*
DIST_SUBDIR= ${PORTNAME}
MANSECS= 1 3 4 5 8
NO_MTREE= yes
NO_WRKSUBDIR= yes
PLIST= ${WRKDIR}/PLIST
SCRIPTS_ENV+= MANSECS="${MANSECS}"
USE_PERL5= yes
DATESPEC= 20010415
MANPAGES_GNU= bash gdbm
MANPAGES_OTHERS= \
bzip2 \
cdparanoia cdrecord cvsup \
dhcpcd \
eject expect \
fetchmail fort77 \
mpg123 \
ncftp netatalk \
rdate \
sudo \
uudeview \
wu-ftpd
.include <bsd.port.pre.mk>
DISTFILES_GNU!=\
${ECHO_CMD} ${MANPAGES_GNU} \
| ${SED} 's/[^ ]*/man-pages-ja-GNU_&-${DATESPEC}.tar.gz/g'
DISTFILES_OTHERS!=\
${ECHO_CMD} ${MANPAGES_OTHERS} \
| ${SED} 's/[^ ]*/man-pages-ja-&-${DATESPEC}.tar.gz/g'
post-extract:
.for i in Makefile Makefile.inc
@${CP} ${FILESDIR}/$i ${WRKSRC}
.endfor
.for i in ${MANSECS}
@cd ${WRKSRC} \
&& ${MKDIR} man$i \
&& ${LN} man-*/man$i/*.$i man$i
.endfor
post-build:
@${ECHO_CMD} -n "" > ${PLIST}
@for sec in ${MANSECS}; do \
if [ -d ${WRKSRC}/man$${sec} ]; then \
cd ${WRKSRC}/man$${sec}; \
list=`${MAKE} pages-list`; \
set `${ECHO_CMD} $$list " "|${SED} 's/\.\([0-9]\) /.\1 \1 /g'`; \
while : ; do \
case $$# in \
0) break;; \
[1]) ${ECHO_CMD} "can not happen" >/dev/tty; \
exit 1;; \
esac; \
${ECHO_CMD} man/ja/man$$2/$$1.gz; shift 2; \
done; \
fi; \
done|${SORT}|uniq >>${PLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>