aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-02-03 19:58:23 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-02-03 19:58:59 +0000
commite24985d3666d7f21ce4d43135cdf15730bbb8f0c (patch)
tree45598fade970c0d5d14e5b99150c498a0f705e37
parentd936c94c64a84e88f8c9fbe350aa0445fda80a06 (diff)
downloadports-e24985d3666d7f21ce4d43135cdf15730bbb8f0c.tar.gz
ports-e24985d3666d7f21ce4d43135cdf15730bbb8f0c.zip
graphics/curtail: New port: Simple & useful image compressor
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/curtail/Makefile33
-rw-r--r--graphics/curtail/distinfo3
-rw-r--r--graphics/curtail/pkg-descr6
-rw-r--r--graphics/curtail/pkg-plist27
5 files changed, 70 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index b240f6615207..bd42ccd8d96b 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -115,6 +115,7 @@
SUBDIR += cptutils
SUBDIR += crw
SUBDIR += curator
+ SUBDIR += curtail
SUBDIR += cuttlefish
SUBDIR += darktable
SUBDIR += darktable38
diff --git a/graphics/curtail/Makefile b/graphics/curtail/Makefile
new file mode 100644
index 000000000000..e1501c63e4bb
--- /dev/null
+++ b/graphics/curtail/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= curtail
+DISTVERSION= 1.2.2
+CATEGORIES= graphics print
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Simple & useful image compressor
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= appstream-util:devel/appstream-glib
+RUN_DEPENDS= cwebp:graphics/webp \
+ jpegoptim:graphics/jpegoptim \
+ optipng:graphics/optipng \
+ pngquant:graphics/pngquant
+
+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>
diff --git a/graphics/curtail/distinfo b/graphics/curtail/distinfo
new file mode 100644
index 000000000000..948b4d19b581
--- /dev/null
+++ b/graphics/curtail/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1643914552
+SHA256 (Huluti-Curtail-1.2.2_GH0.tar.gz) = be5c47d34fbecc08360b33426d7b147de94639e62e01750a43117a409e937c5f
+SIZE (Huluti-Curtail-1.2.2_GH0.tar.gz) = 90061
diff --git a/graphics/curtail/pkg-descr b/graphics/curtail/pkg-descr
new file mode 100644
index 000000000000..777bad4b9c56
--- /dev/null
+++ b/graphics/curtail/pkg-descr
@@ -0,0 +1,6 @@
+Curtail (previously ImCompressor) is an useful image compressor,
+supporting PNG, JPEG and WEBP file types. It support both lossless and
+lossy compression modes with an option to whether keep or not metadata
+of images. It is inspired by Trimage and Image-Optimizer.
+
+WWW: https://github.com/Huluti/Curtail
diff --git a/graphics/curtail/pkg-plist b/graphics/curtail/pkg-plist
new file mode 100644
index 000000000000..0cdc1e1ee76b
--- /dev/null
+++ b/graphics/curtail/pkg-plist
@@ -0,0 +1,27 @@
+bin/curtail
+share/applications/com.github.huluti.Curtail.desktop
+%%DATADIR%%/curtail.gresource
+%%DATADIR%%/curtail/__init__.py
+%%DATADIR%%/curtail/apply.py
+%%DATADIR%%/curtail/compressor.py
+%%DATADIR%%/curtail/main.py
+%%DATADIR%%/curtail/preferences.py
+%%DATADIR%%/curtail/tools.py
+%%DATADIR%%/curtail/window.py
+share/icons/hicolor/scalable/apps/com.github.huluti.Curtail.svg
+share/icons/hicolor/symbolic/apps/com.github.huluti.Curtail-symbolic.svg
+share/locale/de/LC_MESSAGES/curtail.mo
+share/locale/es/LC_MESSAGES/curtail.mo
+share/locale/fr/LC_MESSAGES/curtail.mo
+share/locale/gl/LC_MESSAGES/curtail.mo
+share/locale/hr/LC_MESSAGES/curtail.mo
+share/locale/it/LC_MESSAGES/curtail.mo
+share/locale/nl/LC_MESSAGES/curtail.mo
+share/locale/oc/LC_MESSAGES/curtail.mo
+share/locale/pl/LC_MESSAGES/curtail.mo
+share/locale/pt_BR/LC_MESSAGES/curtail.mo
+share/locale/ru/LC_MESSAGES/curtail.mo
+share/locale/sk/LC_MESSAGES/curtail.mo
+share/locale/sv/LC_MESSAGES/curtail.mo
+share/locale/tr/LC_MESSAGES/curtail.mo
+share/metainfo/com.github.huluti.Curtail.appdata.xml