summaryrefslogtreecommitdiff
path: root/editors/xemacs-packages/Makefile
blob: 26a5d8243bc44ac1d99b9f045f79c3382613370e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.14 2001/02/20 13:37:18 tron Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1999/06/22 22:16:53 gj Exp

DISTNAME=	xemacs-packages
PKGNAME=	xemacs-packages-1.6
CATEGORIES=	editors
MASTER_SITES=	ftp://ftp.xemacs.org/pub/xemacs/packages/ \
		ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/packages/ \
		ftp://ftp.usyd.edu.au/pub/Xemacs/packages/ \
		ftp://ftp.lab.kdd.co.jp/xemacs/packages/ \
		ftp://ftp.th-darmstadt.de/pub/editors/xemacs/packages/
DISTFILES=	xemacs-base-1.49-pkg.tar.gz xemacs-devel-1.31-pkg.tar.gz \
		c-support-1.16-pkg.tar.gz cc-mode-1.23-pkg.tar.gz \
		debug-1.14-pkg.tar.gz dired-1.09-pkg.tar.gz \
		edit-utils-1.55-pkg.tar.gz efs-1.22-pkg.tar.gz \
		fsf-compat-1.08-pkg.tar.gz mail-lib-1.35-pkg.tar.gz \
		mailcrypt-2.07-pkg.tar.gz mule-base-1.37-pkg.tar.gz \
		net-utils-1.15-pkg.tar.gz os-utils-1.25-pkg.tar.gz \
		prog-modes-1.32-pkg.tar.gz psgml-1.22-pkg.tar.gz \
		sgml-1.08-pkg.tar.gz sh-script-1.13-pkg.tar.gz \
		text-modes-1.29-pkg.tar.gz texinfo-1.20-pkg.tar.gz \
		textools-1.12-pkg.tar.gz time-1.11-pkg.tar.gz \
		vc-1.26-pkg.tar.gz vc-cc-1.15-pkg.tar.gz \
		viper-1.23-pkg.tar.gz

MAINTAINER=	tron@netbsd.org
HOMEPAGE=	http://www.xemacs.org/
COMMENT=	Common elisp packages for xemacs 21

DEPENDS+=	xemacs>=21.1.14:../../editors/xemacs

DIST_SUBDIR=	${PKGNAME}
EXTRACT_ONLY=	# empty
NO_BUILD=	yes
WRKSRC=		${WRKDIR}

.include "../../mk/bsd.prefs.mk"

.if defined(MANZ)
PLIST_SUBST+=	ELSUFX=.gz
.else
PLIST_SUBST+=	ELSUFX=
.endif

do-install:
	@${MKDIR} ${PREFIX}/lib/xemacs/xemacs-packages
.for DISTFILE in ${DISTFILES}
	@${ECHO_MSG} -n "Extracting ${DISTFILE} ... "
	@${GTAR} xCzf ${PREFIX}/lib/xemacs/xemacs-packages \
	  ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE}
	@${ECHO_MSG} "done"
.endfor
	@${ECHO_MSG} -n "Fixing file ownerships ... "
	@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/xemacs/xemacs-packages
	@${ECHO_MSG} "done"
.if defined(MANZ)
	@${ECHO_MSG} -n "Compressing \".el\" files ... "
	@cd ${PREFIX} && \
	${GREP} '\$${ELSUFX}$$' ${PLIST_SRC} | \
	${SED} -e 's#\$${ELSUFX}$$##' | \
	xargs ${GZIP_CMD}
	@${ECHO_MSG} "done"
.endif

.include "../../mk/bsd.pkg.mk"