aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-06-21 02:08:30 +0800
committeryuri <yuri@FreeBSD.org>2018-06-21 02:08:30 +0800
commit8491faac198dc1414838648344c0918d7c229d8e (patch)
treef76502e5ba8b6726b1b03b7e8c3941557e3b6e99
parenta942eaa5d649bdcd35eb60de2145ca54b6f2512c (diff)
downloadfreebsd-ports-gnome-8491faac198dc1414838648344c0918d7c229d8e.tar.gz
freebsd-ports-gnome-8491faac198dc1414838648344c0918d7c229d8e.tar.zst
freebsd-ports-gnome-8491faac198dc1414838648344c0918d7c229d8e.zip
Re-add port: graphics/engauge-digitizer: add from math/digitizer@323747
It was previously deleted on 2013-07-26.
-rw-r--r--MOVED3
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/engauge-digitizer/Makefile59
-rw-r--r--graphics/engauge-digitizer/distinfo3
-rw-r--r--graphics/engauge-digitizer/pkg-descr9
-rw-r--r--graphics/engauge-digitizer/pkg-plist19
6 files changed, 92 insertions, 2 deletions
diff --git a/MOVED b/MOVED
index 076fc8190b0c..bfaba9cc6f06 100644
--- a/MOVED
+++ b/MOVED
@@ -4551,7 +4551,6 @@ korean/kde3-i18n||2013-07-26|Has expired: Depends on Qt 3.x
lang/gambas||2013-07-26|Has expired: Depends on Qt 3.x
lang/klogoturtle||2013-07-26|Has expired: Depends on Qt 3.x
mail/kcheckgmail||2013-07-26|Has expired: Depends on Qt 3.x
-math/digitizer||2013-07-26|Has expired: Depends on Qt 3.x
math/fung-calc||2013-07-26|Has expired: Depends on Qt 3.x
math/koctave||2013-07-26|Has expired: Depends on Qt 3.x
math/kseg||2013-07-26|Has expired: Depends on Qt 3.x
@@ -10284,4 +10283,4 @@ x11-themes/adwaita-common||2018-06-19|Move to flavored version
x11-themes/adwaita-qt4|x11-themes/adwaita-qt@qt4|2018-06-19|Move to flavored version
x11-themes/adwaita-qt5|x11-themes/adwaita-qt@qt5|2018-06-19|Move to flavored version
net-p2p/qbittorrent-nox11|net-p2p/qbittorrent@nox|2018-06-20|Moved to a flavored version
-graphics/engauge-digitizer||2018-06-20|Delete to be re-added from math/digitizer
+math/digitizer|graphics/engauge-digitizer|2018-06-20|The previously deleted port math/digitizer is now graphics/engauge-digitizer
diff --git a/graphics/Makefile b/graphics/Makefile
index faf6a242016b..881cefe06936 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -161,6 +161,7 @@
SUBDIR += electrix
SUBDIR += embree
SUBDIR += enblend
+ SUBDIR += engauge-digitizer
SUBDIR += entangle
SUBDIR += eog
SUBDIR += eog-plugins
diff --git a/graphics/engauge-digitizer/Makefile b/graphics/engauge-digitizer/Makefile
new file mode 100644
index 000000000000..1edf8d9411f4
--- /dev/null
+++ b/graphics/engauge-digitizer/Makefile
@@ -0,0 +1,59 @@
+# $FreeBSD$
+
+PORTNAME= engauge-digitizer
+DISTVERSIONPREFIX= v
+DISTVERSION= 10.7.6-2
+DISTVERSIONSUFFIX= -g7ce911c2
+PORTREVISION= 1
+CATEGORIES= graphics math science
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Extract data points from images of graphs
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libfftw3.so:math/fftw3 \
+ liblog4cpp.so:devel/log4cpp \
+ libopenjp2.so:graphics/openjpeg \
+ libpoppler-qt5.so:graphics/poppler-qt5
+
+USES= desktop-file-utils qmake
+USE_GITHUB= yes
+GH_ACCOUNT= markummitchell
+USE_QT5= core gui printsupport sql xml widgets buildtools_build
+USE_GL= gl
+CONFIGURE_ENV= OPENJPEG_INCLUDE=${PREFIX}/include/openjpeg-2.3 OPENJPEG_LIB=${PREFIX}/lib \
+ POPPLER_INCLUDE=${PREFIX}/include/poppler/qt5 POPPLER_LIB=${PREFIX}/lib
+QMAKE_ARGS= "CONFIG+=jpeg2000 pdf"
+
+OPTIONS_DEFINE= NLS DOCS
+OPTIONS_SUB= yes
+
+DOCS_USE= QT5=help,linguist_build
+
+do-patch-NLS-on:
+ @${REINPLACE_CMD} -e 's|QCoreApplication::applicationDirPath () + "/translations",|"${DATADIR}/translations",|' ${WRKSRC}/src/Translator/TranslatorContainer.cpp
+
+post-build-NLS-on:
+ @cd ${WRKSRC} && lrelease engauge.pro
+
+post-build-DOCS-on:
+ @cd ${WRKSRC}/help && ./build
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/engauge ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+ ${GZIP_CMD} < ${WRKSRC}/src/img/${PORTNAME}.svg > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svgz
+ ${INSTALL_DATA} ${WRKSRC}/dev/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
+
+do-install-NLS-on:
+ @${MKDIR} ${STAGEDIR}${DATADIR}/translations
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${STAGEDIR}${DATADIR}/translations
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin/documentation/engauge.qch ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin/documentation/engauge.qhc ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/graphics/engauge-digitizer/distinfo b/graphics/engauge-digitizer/distinfo
new file mode 100644
index 000000000000..93a2b9349158
--- /dev/null
+++ b/graphics/engauge-digitizer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1529465389
+SHA256 (markummitchell-engauge-digitizer-v10.7.6-2-g7ce911c2_GH0.tar.gz) = ce1ca9a91a4505adf91150c2abb037d1642558b1b02b2035a4e623dad7867647
+SIZE (markummitchell-engauge-digitizer-v10.7.6-2-g7ce911c2_GH0.tar.gz) = 68504322
diff --git a/graphics/engauge-digitizer/pkg-descr b/graphics/engauge-digitizer/pkg-descr
new file mode 100644
index 000000000000..1abf7d483989
--- /dev/null
+++ b/graphics/engauge-digitizer/pkg-descr
@@ -0,0 +1,9 @@
+The Engauge Digitizer tool accepts image files (like PNG, JPEG and TIFF)
+containing graphs, and recovers the data points from those graphs. The resulting
+data points are usually used as input to other software applications.
+Conceptually, Engauge Digitizer is the opposite of a graphing tool that converts
+data points to graphs. The process is shown below - an image file is imported,
+digitized within Engauge, and exported as a table of numeric data to a text
+file. Work can be saved into an Engauge DIG file.
+
+WWW: http://markummitchell.github.io/engauge-digitizer/
diff --git a/graphics/engauge-digitizer/pkg-plist b/graphics/engauge-digitizer/pkg-plist
new file mode 100644
index 000000000000..8ad8ee69a063
--- /dev/null
+++ b/graphics/engauge-digitizer/pkg-plist
@@ -0,0 +1,19 @@
+bin/engauge
+share/applications/engauge-digitizer.desktop
+%%PORTDOCS%%%%DOCSDIR%%/engauge.qch
+%%PORTDOCS%%%%DOCSDIR%%/engauge.qhc
+%%NLS%%%%DATADIR%%/translations/engauge_ar.qm
+%%NLS%%%%DATADIR%%/translations/engauge_cs.qm
+%%NLS%%%%DATADIR%%/translations/engauge_de.qm
+%%NLS%%%%DATADIR%%/translations/engauge_en.qm
+%%NLS%%%%DATADIR%%/translations/engauge_es.qm
+%%NLS%%%%DATADIR%%/translations/engauge_fr.qm
+%%NLS%%%%DATADIR%%/translations/engauge_hi.qm
+%%NLS%%%%DATADIR%%/translations/engauge_it.qm
+%%NLS%%%%DATADIR%%/translations/engauge_ja.qm
+%%NLS%%%%DATADIR%%/translations/engauge_kk.qm
+%%NLS%%%%DATADIR%%/translations/engauge_ko.qm
+%%NLS%%%%DATADIR%%/translations/engauge_pt.qm
+%%NLS%%%%DATADIR%%/translations/engauge_ru.qm
+%%NLS%%%%DATADIR%%/translations/engauge_zh.qm
+share/icons/hicolor/scalable/apps/engauge-digitizer.svgz