Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= tramp |
8 |
PORTNAME= tramp |
9 |
PORTVERSION= 2.0.29 |
9 |
PORTVERSION= 2.0.35 |
10 |
CATEGORIES= net elisp |
10 |
CATEGORIES= net elisp |
11 |
MASTER_SITES= http://savannah.nongnu.org/download/tramp/ |
11 |
MASTER_SITES= http://savannah.nongnu.org/download/tramp/ |
12 |
PKGNAMESUFFIX= -${EMACS_PORT_NAME} |
12 |
PKGNAMESUFFIX= -${EMACS_PORT_NAME} |
Lines 18-71
Link Here
|
18 |
|
18 |
|
19 |
BUILD_WRKSRC= ${WRKSRC}/lisp |
19 |
BUILD_WRKSRC= ${WRKSRC}/lisp |
20 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
21 |
|
21 |
GNU_CONFIGURE= yes |
22 |
TRAMP_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
22 |
TRAMP_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
23 |
DIRSECTION= "The Emacs editor and associated tools" |
23 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
24 |
INFOENTRY= "* TRAMP: (tramp). Transparent Remote Access, Multiple Protocol." |
24 |
--with-lispdir=${PREFIX}/${TRAMP_LISPDIR} |
25 |
INFOENTRY_JA= "* TRAMP-J: (tramp_ja). Transparent Remote Access, Multiple Protocol." |
25 |
PLIST_SUB+= TRAMP_LISPDIR=${TRAMP_LISPDIR} |
26 |
PLIST_SUB+= TRAMP_LISPDIR=${TRAMP_LISPDIR} \ |
|
|
27 |
DIRSECTION=${DIRSECTION} \ |
28 |
INFOENTRY=${INFOENTRY} INFOENTRY_JA=${INFOENTRY_JA} |
29 |
|
30 |
.if !defined(NOPORTDOCS) && defined(JAPANESE_INFO) |
31 |
BUILD_DEPENDS+= jmakeinfo:${PORTSDIR}/japanese/texinfo |
32 |
PLIST_SUB+= JAPANESE_INFO="" |
33 |
.else |
34 |
PLIST_SUB+= JAPANESE_INFO="@comment " |
35 |
.endif |
36 |
|
26 |
|
37 |
.if ${EMACS_PORT_NAME} == emacs20 |
27 |
.if ${EMACS_PORT_NAME} == emacs20 |
|
|
28 |
USE_CONTRIB=1 |
38 |
PLIST_SUB+= EMACS20_ONLY="" |
29 |
PLIST_SUB+= EMACS20_ONLY="" |
39 |
.else |
30 |
.else |
40 |
PLIST_SUB+= EMACS20_ONLY="@comment " |
31 |
PLIST_SUB+= EMACS20_ONLY="@comment " |
41 |
.endif |
32 |
.endif |
42 |
|
33 |
|
43 |
pre-build: |
34 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
44 |
.if ${EMACS_PORT_NAME} == emacs20 |
|
|
45 |
.for i in format-spec md5 |
46 |
(cd ${WRKSRC}/contrib; ${EMACS_CMD} -batch -f batch-byte-compile ${i}.el) |
47 |
(${CP} -p ${WRKSRC}/contrib/${i}.el ${WRKSRC}/contrib/${i}.elc ${BUILD_WRKSRC}) |
48 |
.endfor |
49 |
.endif |
50 |
post-build: |
51 |
.if !defined(NOPORTDOCS) |
52 |
# (cd ${WRKSRC}/texi; ${GMAKE} EMACS=${EMACS_CMD} MAKEINFO=makeinfo tramp.info) |
53 |
.if defined(JAPANESE_INFO) |
54 |
(cd ${WRKSRC}/texi; ${GMAKE} EMACS=${EMACS_CMD} MAKEINFO=jmakeinfo tramp_ja.info) |
55 |
.endif |
56 |
.endif |
57 |
|
35 |
|
58 |
do-install: |
36 |
post-extract: |
59 |
${MKDIR} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
37 |
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g; s=%%TRAMP_LISPDIR%%=${TRAMP_LISPDIR}=g" ${FILESDIR}/pkg-message > ${PKGMESSAGE} |
60 |
${INSTALL_DATA} ${BUILD_WRKSRC}/*.el ${BUILD_WRKSRC}/*.elc ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
38 |
|
61 |
${INSTALL_DATA} ${WRKSRC}/tramp2/*.el ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
39 |
post-install: |
62 |
.if !defined(NOPORTDOCS) |
40 |
@${ECHO_MSG} |
63 |
${INSTALL_DATA} ${WRKSRC}/info/tramp ${PREFIX}/info |
41 |
@${CAT} ${PKGMESSAGE} |
64 |
install-info --section=${DIRSECTION} --entry=${INFOENTRY} ${PREFIX}/info/tramp ${PREFIX}/info/dir |
42 |
@${ECHO_MSG} |
65 |
.if defined(JAPANESE_INFO) |
|
|
66 |
${INSTALL_DATA} ${WRKSRC}/texi/tramp_ja.info ${PREFIX}/info |
67 |
install-info --section=${DIRSECTION} --entry=${INFOENTRY_JA} ${PREFIX}/info/tramp_ja.info ${PREFIX}/info/dir |
68 |
.endif |
69 |
.endif |
70 |
|
43 |
|
71 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |