blob: afe05fd9fb9b5f42689cbd80d5ea26d37c92d0c7 (
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
|
PORTNAME= curtail
DISTVERSION= 1.11.0
CATEGORIES= graphics print
MAINTAINER= yuri@FreeBSD.org
COMMENT= Simple & useful image compressor
WWW= https://github.com/Huluti/Curtail
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= appstream-util:devel/appstream-glib
RUN_DEPENDS= cwebp:graphics/webp \
jpegoptim:graphics/jpegoptim \
libadwaita>0:x11-toolkits/libadwaita \
oxipng:graphics/oxipng \
pngquant:graphics/pngquant \
scour:textproc/py-scour@${PY_FLAVOR}
USES= desktop-file-utils gettext gnome meson pkgconfig python
USE_GNOME= glib20 gtk30
USE_GITHUB= yes
GH_ACCOUNT= Huluti
GH_PROJECT= Curtail
GLIB_SCHEMAS= com.github.huluti.Curtail.gschema.xml
NO_ARCH= yes
BINARY_ALIAS= python3=${PYTHON_CMD}
post-install: # adjust python path in the executable
@${REINPLACE_CMD} -i '' -e 's|^#!.*|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|