blob: d6c6f6cfdcbc61e1d0a764018e59eb43faecd316 (
plain) (
blame)
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
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
PORTNAME= portupgrade
PORTVERSION= 20180309
PORTREVISION= 0
PORTEPOCH= 3
CATEGORIES= ports-mgmt
MASTER_SITES= GH \
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
LOCAL/bdrewery/${PORTNAME}/
PKGNAMESUFFIX= -devel
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= FreeBSD ports/packages management tool (devel version)
LICENSE= BSD3CLAUSE
CONFLICTS_INSTALL= portupgrade-[0-9]*
USES= uidfix
USE_GITHUB= yes
GH_ACCOUNT= freebsd
GH_TAGNAME= 2.4.16
DIST_SUBDIR= ${PORTNAME}
USE_RUBY= yes
USE_LDCONFIG= ${PREFIX}/lib/compat/pkg
MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}" \
RUBY_SITELIBDIR="${RUBY_SITELIBDIR}" MKDIR="${MKDIR}"
EXAMPLESDIR= ${PREFIX}/share/examples/pkgtools
DOCSDIR= ${PREFIX}/share/doc/pkgtools
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
INSTALL_TARGET= install
.if ${PORT_OPTIONS:MDOCS}
INSTALL_TARGET+= install-doc
.endif
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
regression-test: patch
cd ${WRKSRC} && ${MAKE} test
post-patch: .SILENT
REVISION=`readlink "${_DISTDIR}/portupgrade/latest" | ${SED} -E -e 's,.*pkgtools-(.*).tar.gz,\1,g'` && ${SED} -E -e "s,%%DATE%%,${PORTVERSION},g;s,%%REVISION%%,$${REVISION},g" \
${WRKSRC}/lib/pkgtools/revision.rb.in > ${WRKSRC}/lib/pkgtools/revision.rb
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
.include <bsd.port.post.mk>
|