aboutsummaryrefslogtreecommitdiff
path: root/filesystems/unionfs/Makefile
blob: 9191b674d7b29631442072885bd01fa14292c797 (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
PORTNAME=	unionfs
DISTVERSIONPREFIX=	v
DISTVERSION=	3.7
CATEGORIES=	filesystems
PKGNAMEPREFIX=	fusefs-

MAINTAINER=	pkaipila@gmail.com
COMMENT=	FUSE based implementation of the well-known unionfs
WWW=		https://github.com/rpodgorny/unionfs-fuse

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}

USES=		cmake fuse:3 localbase:ldflags pkgconfig python:test

USE_GITHUB=	yes
GH_ACCOUNT=	rpodgorny
GH_PROJECT=	unionfs-fuse

SUB_FILES=	pkg-message

PLIST_FILES=	bin/unionfs \
		bin/unionfsctl \
		share/man/man8/unionfs.8.gz

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

pre-test:
	${RLN} ${BUILD_WRKSRC}/src/unionfs ${WRKSRC}/src/unionfs
	${RLN} ${BUILD_WRKSRC}/src/unionfsctl ${WRKSRC}/src/unionfsctl

do-test:
	cd ${WRKSRC} && ${SETNEV} ${MAKE_ENV} ${PYTHON_CMD} -m pytest -k test_help --verbose

.include <bsd.port.mk>