~cypheon/pkgsrc-wip

pkgsrc-wip/pharo/Makefile -rw-r--r-- 1.1 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD$

PHARO_BUILD=	1565
PHARO_SHA=	38c49c2
PHARO_ARCH=	64bit

DISTNAME=	Pharo9.0-SNAPSHOT.build.${PHARO_BUILD}.sha.${PHARO_SHA}.arch.${PHARO_ARCH}
PKGNAME=	pharo-9.0.0.${PHARO_BUILD}
CATEGORIES=	lang
MASTER_SITES=	http://files.pharo.org/image/90/
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://files.pharo.org/image/90/
COMMENT=	Pure object-oriented programming language and a powerful environment
LICENSE=	mit AND apache-2.0

DEPENDS+=	pharo-vm-[0-9]*:../../wip/pharo-vm

WRKSRC=		${WRKDIR}
USE_LANGUAGES=	# none

NO_CONFIGURE=	yes
NO_BUILD=	yes

INSTALLATION_DIRS=	share/pharo

PHARO_SRC=	${WRKSRC}/Pharo9.0-SNAPSHOT-${PHARO_ARCH}-${PHARO_SHA}
PHARO_DST=	${DESTDIR}${PREFIX}/share/pharo/

do-install:
	${INSTALL_DATA} ${PHARO_SRC}.image   ${PHARO_DST}/Pharo.image
	${INSTALL_DATA} ${PHARO_SRC}.changes ${PHARO_DST}/Pharo.changes
	${INSTALL_DATA} ${PHARO_SRC:C/SNAPSHOT-//}.sources ${PHARO_DST}

PRINT_PLIST_AWK+=	{gsub(/${PHARO_ARCH}/, "$${PHARO_ARCH}");}
PRINT_PLIST_AWK+=	{gsub(/${PHARO_SHA}/, "$${PHARO_SHA}");}

PLIST_SUBST+=	PHARO_ARCH=${PHARO_ARCH:Q}
PLIST_SUBST+=	PHARO_SHA=${PHARO_SHA:Q}

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