diff --git a/math/Makefile b/math/Makefile index ac7996664a34..02d81205a38f 100644 --- a/math/Makefile +++ b/math/Makefile @@ -548,6 +548,7 @@ SUBDIR += p5-Task-Math-Symbolic SUBDIR += p5-Text-AsciiTeX SUBDIR += p5-bignum + SUBDIR += pantheon-calculator SUBDIR += pari SUBDIR += parmetis SUBDIR += parmgridgen diff --git a/math/pantheon-calculator/Makefile b/math/pantheon-calculator/Makefile new file mode 100644 index 000000000000..d299c12eab95 --- /dev/null +++ b/math/pantheon-calculator/Makefile @@ -0,0 +1,25 @@ +# Created by: Olivier Duchateau +# $FreeBSD$ + +PORTNAME= pantheon-calculator +PORTVERSION= 0.1.2 +CATEGORIES= math +MASTER_SITES= https://launchpadlibrarian.net/303135059/ \ + https://launchpad.net/${PORTNAME}/0.4-loki/${PORTVERSION}/+download/ +DIST_SUBDIR= pantheon + +MAINTAINER= olivierd@FreeBSD.org +COMMENT= Simple calculator written in Vala + +LICENSE= GPLv3 + +BUILD_DEPENDS= valac:lang/vala +LIB_DEPENDS= libgranite.so:x11-toolkits/granite \ + libgee-0.8.so:devel/libgee + +USES= cmake:outsource pkgconfig gettext tar:xz +USE_GNOME= glib20 gtk30 cairo gdkpixbuf2 intltool + +GLIB_SCHEMAS= org.pantheon.calculator.gschema.xml + +.include diff --git a/math/pantheon-calculator/distinfo b/math/pantheon-calculator/distinfo new file mode 100644 index 000000000000..e93c2be4f8df --- /dev/null +++ b/math/pantheon-calculator/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1484991836 +SHA256 (pantheon/pantheon-calculator-0.1.2.tar.xz) = 80f936e5a48be7c1ca9904e1ebe14b9f112b549e698937aed6a0b4e580957e15 +SIZE (pantheon/pantheon-calculator-0.1.2.tar.xz) = 58492 diff --git a/math/pantheon-calculator/files/patch-cmake_Translations.cmake b/math/pantheon-calculator/files/patch-cmake_Translations.cmake new file mode 100644 index 000000000000..e0f434c26d22 --- /dev/null +++ b/math/pantheon-calculator/files/patch-cmake_Translations.cmake @@ -0,0 +1,22 @@ +--- cmake/Translations.cmake.orig 2016-09-20 11:55:41 UTC ++++ cmake/Translations.cmake +@@ -91,9 +91,7 @@ macro (configure_file_translation SOURCE + set(EXTRA_PO_DIR ${PO_DIR}/extra/) + get_filename_component(EXTRA_PO_DIR ${EXTRA_PO_DIR} ABSOLUTE) + +- # Intltool can't create a new directory. +- get_filename_component(SOURCE_DIRECTORY ${SOURCE} DIRECTORY) +- file(MAKE_DIRECTORY ${SOURCE_DIRECTORY}) ++ get_filename_component(TARGET ${SOURCE} NAME) + + set (INTLTOOL_FLAG "") + if (${SOURCE} MATCHES ".desktop") +@@ -103,7 +101,7 @@ macro (configure_file_translation SOURCE + elseif (${SOURCE} MATCHES ".xml") + set (INTLTOOL_FLAG "--xml-style") + endif () +- execute_process (WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${INTLTOOL_MERGE_EXECUTABLE} --quiet ${INTLTOOL_FLAG} ${EXTRA_PO_DIR} ${SOURCE} ${RESULT}) ++ add_custom_target ("${TARGET}" ALL ${INTLTOOL_MERGE_EXECUTABLE} --quiet ${INTLTOOL_FLAG} ${EXTRA_PO_DIR} ${SOURCE} ${RESULT}) + endmacro () + + macro (add_translations_catalog NLS_PACKAGE) diff --git a/math/pantheon-calculator/files/patch-data_CMakeLists.txt b/math/pantheon-calculator/files/patch-data_CMakeLists.txt new file mode 100644 index 000000000000..b9e86818a10f --- /dev/null +++ b/math/pantheon-calculator/files/patch-data_CMakeLists.txt @@ -0,0 +1,13 @@ +--- data/CMakeLists.txt.orig 2016-09-20 11:55:41 UTC ++++ data/CMakeLists.txt +@@ -1,5 +1,7 @@ +-configure_file (org.pantheon.calculator.desktop.in.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.desktop.in) +-configure_file_translation (${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.desktop ${CMAKE_SOURCE_DIR}/po/) +-configure_file_translation (${CMAKE_CURRENT_SOURCE_DIR}/org.pantheon.calculator.appdata.xml.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.appdata.xml ${CMAKE_SOURCE_DIR}/po/) ++include (Translations) ++ ++configure_file (org.pantheon.calculator.desktop.in.in org.pantheon.calculator.desktop.in) ++configure_file_translation (${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.desktop.in org.pantheon.calculator.desktop ${CMAKE_SOURCE_DIR}/po/) ++configure_file_translation (${CMAKE_CURRENT_SOURCE_DIR}/org.pantheon.calculator.appdata.xml.in org.pantheon.calculator.appdata.xml ${CMAKE_SOURCE_DIR}/po/) + install (FILES ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.desktop DESTINATION share/applications) + install (FILES ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.calculator.appdata.xml DESTINATION share/appdata) diff --git a/math/pantheon-calculator/files/patch-src_HistoryDialog.vala b/math/pantheon-calculator/files/patch-src_HistoryDialog.vala new file mode 100644 index 000000000000..357945bb6f5d --- /dev/null +++ b/math/pantheon-calculator/files/patch-src_HistoryDialog.vala @@ -0,0 +1,13 @@ +--- src/HistoryDialog.vala.orig 2016-09-20 11:55:41 UTC ++++ src/HistoryDialog.vala +@@ -31,6 +31,10 @@ namespace PantheonCalculator { + public signal void added (string text); + + public HistoryDialog (List _history) { ++ Intl.setlocale (LocaleCategory.ALL, ""); ++ Intl.bind_textdomain_codeset (Build.GETTEXT_PACKAGE, "UTF-8"); ++ Intl.textdomain (Build.GETTEXT_PACKAGE); ++ + history = _history; + title = _("History"); + set_size_request (450, 0); diff --git a/math/pantheon-calculator/files/patch-src_MainWindow.vala b/math/pantheon-calculator/files/patch-src_MainWindow.vala new file mode 100644 index 000000000000..ee7a9ad7db1d --- /dev/null +++ b/math/pantheon-calculator/files/patch-src_MainWindow.vala @@ -0,0 +1,15 @@ +Replace missing icons (Adwaita) + +--- src/MainWindow.vala.orig 2016-08-10 05:29:30 UTC ++++ src/MainWindow.vala +@@ -73,8 +73,8 @@ namespace PantheonCalculator { + headerbar.set_title (_("Calculator")); + set_titlebar (headerbar); + +- extended_img_1 = new Gtk.Image.from_icon_name ("pane-hide-symbolic", Gtk.IconSize.MENU); +- extended_img_2 = new Gtk.Image.from_icon_name ("pane-show-symbolic", Gtk.IconSize.MENU); ++ extended_img_1 = new Gtk.Image.from_icon_name ("pan-end-symbolic", Gtk.IconSize.MENU); ++ extended_img_2 = new Gtk.Image.from_icon_name ("pan-start-symbolic", Gtk.IconSize.MENU); + + button_extended = new Gtk.ToggleButton (); + button_extended.image = extended_img_1; diff --git a/math/pantheon-calculator/files/patch-src_PantheonCalculator.vala b/math/pantheon-calculator/files/patch-src_PantheonCalculator.vala new file mode 100644 index 000000000000..7be11669d766 --- /dev/null +++ b/math/pantheon-calculator/files/patch-src_PantheonCalculator.vala @@ -0,0 +1,10 @@ +--- src/PantheonCalculator.vala.orig 2017-01-19 21:18:25 UTC ++++ src/PantheonCalculator.vala +@@ -59,6 +59,7 @@ namespace PantheonCalculator { + + public override void activate () { + window = new PantheonCalculator.MainWindow (); ++ window.icon_name = "accessories-calculator"; + this.add_window (window); + } + } diff --git a/math/pantheon-calculator/pkg-descr b/math/pantheon-calculator/pkg-descr new file mode 100644 index 000000000000..3d3b77adb54e --- /dev/null +++ b/math/pantheon-calculator/pkg-descr @@ -0,0 +1,4 @@ +Pantheon-calculator is a tiny, simple calculator designed for the Pantheon +desktop. + +WWW: https://launchpad.net/pantheon-calculator diff --git a/math/pantheon-calculator/pkg-plist b/math/pantheon-calculator/pkg-plist new file mode 100644 index 000000000000..4b41619d36d5 --- /dev/null +++ b/math/pantheon-calculator/pkg-plist @@ -0,0 +1,202 @@ +bin/pantheon-calculator +share/appdata/org.pantheon.calculator.appdata.xml +share/applications/org.pantheon.calculator.desktop +share/locale/aa/LC_MESSAGES/pantheon-calculator.mo +share/locale/ab/LC_MESSAGES/pantheon-calculator.mo +share/locale/ae/LC_MESSAGES/pantheon-calculator.mo +share/locale/af/LC_MESSAGES/pantheon-calculator.mo +share/locale/ak/LC_MESSAGES/pantheon-calculator.mo +share/locale/am/LC_MESSAGES/pantheon-calculator.mo +share/locale/an/LC_MESSAGES/pantheon-calculator.mo +share/locale/ar/LC_MESSAGES/pantheon-calculator.mo +share/locale/as/LC_MESSAGES/pantheon-calculator.mo +share/locale/ast/LC_MESSAGES/pantheon-calculator.mo +share/locale/av/LC_MESSAGES/pantheon-calculator.mo +share/locale/ay/LC_MESSAGES/pantheon-calculator.mo +share/locale/az/LC_MESSAGES/pantheon-calculator.mo +share/locale/ba/LC_MESSAGES/pantheon-calculator.mo +share/locale/be/LC_MESSAGES/pantheon-calculator.mo +share/locale/bg/LC_MESSAGES/pantheon-calculator.mo +share/locale/bh/LC_MESSAGES/pantheon-calculator.mo +share/locale/bi/LC_MESSAGES/pantheon-calculator.mo +share/locale/bm/LC_MESSAGES/pantheon-calculator.mo +share/locale/bn/LC_MESSAGES/pantheon-calculator.mo +share/locale/bo/LC_MESSAGES/pantheon-calculator.mo +share/locale/br/LC_MESSAGES/pantheon-calculator.mo +share/locale/bs/LC_MESSAGES/pantheon-calculator.mo +share/locale/ca/LC_MESSAGES/pantheon-calculator.mo +share/locale/ce/LC_MESSAGES/pantheon-calculator.mo +share/locale/ch/LC_MESSAGES/pantheon-calculator.mo +share/locale/ckb/LC_MESSAGES/pantheon-calculator.mo +share/locale/co/LC_MESSAGES/pantheon-calculator.mo +share/locale/cr/LC_MESSAGES/pantheon-calculator.mo +share/locale/cs/LC_MESSAGES/pantheon-calculator.mo +share/locale/cu/LC_MESSAGES/pantheon-calculator.mo +share/locale/cv/LC_MESSAGES/pantheon-calculator.mo +share/locale/cy/LC_MESSAGES/pantheon-calculator.mo +share/locale/da/LC_MESSAGES/pantheon-calculator.mo +share/locale/de/LC_MESSAGES/pantheon-calculator.mo +share/locale/dv/LC_MESSAGES/pantheon-calculator.mo +share/locale/dz/LC_MESSAGES/pantheon-calculator.mo +share/locale/ee/LC_MESSAGES/pantheon-calculator.mo +share/locale/el/LC_MESSAGES/pantheon-calculator.mo +share/locale/en_AU/LC_MESSAGES/pantheon-calculator.mo +share/locale/en_CA/LC_MESSAGES/pantheon-calculator.mo +share/locale/en_GB/LC_MESSAGES/pantheon-calculator.mo +share/locale/eo/LC_MESSAGES/pantheon-calculator.mo +share/locale/es/LC_MESSAGES/pantheon-calculator.mo +share/locale/et/LC_MESSAGES/pantheon-calculator.mo +share/locale/eu/LC_MESSAGES/pantheon-calculator.mo +share/locale/fa/LC_MESSAGES/pantheon-calculator.mo +share/locale/ff/LC_MESSAGES/pantheon-calculator.mo +share/locale/fi/LC_MESSAGES/pantheon-calculator.mo +share/locale/fj/LC_MESSAGES/pantheon-calculator.mo +share/locale/fo/LC_MESSAGES/pantheon-calculator.mo +share/locale/fr/LC_MESSAGES/pantheon-calculator.mo +share/locale/fr_CA/LC_MESSAGES/pantheon-calculator.mo +share/locale/fy/LC_MESSAGES/pantheon-calculator.mo +share/locale/ga/LC_MESSAGES/pantheon-calculator.mo +share/locale/gd/LC_MESSAGES/pantheon-calculator.mo +share/locale/gl/LC_MESSAGES/pantheon-calculator.mo +share/locale/gn/LC_MESSAGES/pantheon-calculator.mo +share/locale/gu/LC_MESSAGES/pantheon-calculator.mo +share/locale/gv/LC_MESSAGES/pantheon-calculator.mo +share/locale/ha/LC_MESSAGES/pantheon-calculator.mo +share/locale/he/LC_MESSAGES/pantheon-calculator.mo +share/locale/hi/LC_MESSAGES/pantheon-calculator.mo +share/locale/ho/LC_MESSAGES/pantheon-calculator.mo +share/locale/hr/LC_MESSAGES/pantheon-calculator.mo +share/locale/ht/LC_MESSAGES/pantheon-calculator.mo +share/locale/hu/LC_MESSAGES/pantheon-calculator.mo +share/locale/hy/LC_MESSAGES/pantheon-calculator.mo +share/locale/hz/LC_MESSAGES/pantheon-calculator.mo +share/locale/ia/LC_MESSAGES/pantheon-calculator.mo +share/locale/id/LC_MESSAGES/pantheon-calculator.mo +share/locale/ie/LC_MESSAGES/pantheon-calculator.mo +share/locale/ig/LC_MESSAGES/pantheon-calculator.mo +share/locale/ii/LC_MESSAGES/pantheon-calculator.mo +share/locale/ik/LC_MESSAGES/pantheon-calculator.mo +share/locale/io/LC_MESSAGES/pantheon-calculator.mo +share/locale/is/LC_MESSAGES/pantheon-calculator.mo +share/locale/it/LC_MESSAGES/pantheon-calculator.mo +share/locale/iu/LC_MESSAGES/pantheon-calculator.mo +share/locale/ja/LC_MESSAGES/pantheon-calculator.mo +share/locale/jv/LC_MESSAGES/pantheon-calculator.mo +share/locale/ka/LC_MESSAGES/pantheon-calculator.mo +share/locale/kab/LC_MESSAGES/pantheon-calculator.mo +share/locale/kg/LC_MESSAGES/pantheon-calculator.mo +share/locale/ki/LC_MESSAGES/pantheon-calculator.mo +share/locale/kj/LC_MESSAGES/pantheon-calculator.mo +share/locale/kk/LC_MESSAGES/pantheon-calculator.mo +share/locale/kl/LC_MESSAGES/pantheon-calculator.mo +share/locale/km/LC_MESSAGES/pantheon-calculator.mo +share/locale/kn/LC_MESSAGES/pantheon-calculator.mo +share/locale/ko/LC_MESSAGES/pantheon-calculator.mo +share/locale/kr/LC_MESSAGES/pantheon-calculator.mo +share/locale/ks/LC_MESSAGES/pantheon-calculator.mo +share/locale/ku/LC_MESSAGES/pantheon-calculator.mo +share/locale/kv/LC_MESSAGES/pantheon-calculator.mo +share/locale/kw/LC_MESSAGES/pantheon-calculator.mo +share/locale/ky/LC_MESSAGES/pantheon-calculator.mo +share/locale/la/LC_MESSAGES/pantheon-calculator.mo +share/locale/lb/LC_MESSAGES/pantheon-calculator.mo +share/locale/lg/LC_MESSAGES/pantheon-calculator.mo +share/locale/li/LC_MESSAGES/pantheon-calculator.mo +share/locale/ln/LC_MESSAGES/pantheon-calculator.mo +share/locale/lo/LC_MESSAGES/pantheon-calculator.mo +share/locale/lt/LC_MESSAGES/pantheon-calculator.mo +share/locale/lu/LC_MESSAGES/pantheon-calculator.mo +share/locale/lv/LC_MESSAGES/pantheon-calculator.mo +share/locale/mg/LC_MESSAGES/pantheon-calculator.mo +share/locale/mh/LC_MESSAGES/pantheon-calculator.mo +share/locale/mi/LC_MESSAGES/pantheon-calculator.mo +share/locale/mk/LC_MESSAGES/pantheon-calculator.mo +share/locale/ml/LC_MESSAGES/pantheon-calculator.mo +share/locale/mn/LC_MESSAGES/pantheon-calculator.mo +share/locale/mo/LC_MESSAGES/pantheon-calculator.mo +share/locale/mr/LC_MESSAGES/pantheon-calculator.mo +share/locale/ms/LC_MESSAGES/pantheon-calculator.mo +share/locale/mt/LC_MESSAGES/pantheon-calculator.mo +share/locale/my/LC_MESSAGES/pantheon-calculator.mo +share/locale/na/LC_MESSAGES/pantheon-calculator.mo +share/locale/nb/LC_MESSAGES/pantheon-calculator.mo +share/locale/nd/LC_MESSAGES/pantheon-calculator.mo +share/locale/ne/LC_MESSAGES/pantheon-calculator.mo +share/locale/ng/LC_MESSAGES/pantheon-calculator.mo +share/locale/nl/LC_MESSAGES/pantheon-calculator.mo +share/locale/nn/LC_MESSAGES/pantheon-calculator.mo +share/locale/no/LC_MESSAGES/pantheon-calculator.mo +share/locale/nr/LC_MESSAGES/pantheon-calculator.mo +share/locale/nv/LC_MESSAGES/pantheon-calculator.mo +share/locale/ny/LC_MESSAGES/pantheon-calculator.mo +share/locale/oc/LC_MESSAGES/pantheon-calculator.mo +share/locale/oj/LC_MESSAGES/pantheon-calculator.mo +share/locale/om/LC_MESSAGES/pantheon-calculator.mo +share/locale/or/LC_MESSAGES/pantheon-calculator.mo +share/locale/os/LC_MESSAGES/pantheon-calculator.mo +share/locale/pa/LC_MESSAGES/pantheon-calculator.mo +share/locale/pi/LC_MESSAGES/pantheon-calculator.mo +share/locale/pl/LC_MESSAGES/pantheon-calculator.mo +share/locale/ps/LC_MESSAGES/pantheon-calculator.mo +share/locale/pt/LC_MESSAGES/pantheon-calculator.mo +share/locale/pt_BR/LC_MESSAGES/pantheon-calculator.mo +share/locale/qu/LC_MESSAGES/pantheon-calculator.mo +share/locale/rm/LC_MESSAGES/pantheon-calculator.mo +share/locale/rn/LC_MESSAGES/pantheon-calculator.mo +share/locale/ro/LC_MESSAGES/pantheon-calculator.mo +share/locale/ru/LC_MESSAGES/pantheon-calculator.mo +share/locale/rue/LC_MESSAGES/pantheon-calculator.mo +share/locale/rw/LC_MESSAGES/pantheon-calculator.mo +share/locale/sa/LC_MESSAGES/pantheon-calculator.mo +share/locale/sc/LC_MESSAGES/pantheon-calculator.mo +share/locale/sd/LC_MESSAGES/pantheon-calculator.mo +share/locale/se/LC_MESSAGES/pantheon-calculator.mo +share/locale/sg/LC_MESSAGES/pantheon-calculator.mo +share/locale/si/LC_MESSAGES/pantheon-calculator.mo +share/locale/sk/LC_MESSAGES/pantheon-calculator.mo +share/locale/sl/LC_MESSAGES/pantheon-calculator.mo +share/locale/sm/LC_MESSAGES/pantheon-calculator.mo +share/locale/sma/LC_MESSAGES/pantheon-calculator.mo +share/locale/sn/LC_MESSAGES/pantheon-calculator.mo +share/locale/so/LC_MESSAGES/pantheon-calculator.mo +share/locale/sq/LC_MESSAGES/pantheon-calculator.mo +share/locale/sr/LC_MESSAGES/pantheon-calculator.mo +share/locale/ss/LC_MESSAGES/pantheon-calculator.mo +share/locale/st/LC_MESSAGES/pantheon-calculator.mo +share/locale/su/LC_MESSAGES/pantheon-calculator.mo +share/locale/sv/LC_MESSAGES/pantheon-calculator.mo +share/locale/sw/LC_MESSAGES/pantheon-calculator.mo +share/locale/szl/LC_MESSAGES/pantheon-calculator.mo +share/locale/ta/LC_MESSAGES/pantheon-calculator.mo +share/locale/te/LC_MESSAGES/pantheon-calculator.mo +share/locale/tg/LC_MESSAGES/pantheon-calculator.mo +share/locale/th/LC_MESSAGES/pantheon-calculator.mo +share/locale/ti/LC_MESSAGES/pantheon-calculator.mo +share/locale/tk/LC_MESSAGES/pantheon-calculator.mo +share/locale/tl/LC_MESSAGES/pantheon-calculator.mo +share/locale/tn/LC_MESSAGES/pantheon-calculator.mo +share/locale/to/LC_MESSAGES/pantheon-calculator.mo +share/locale/tr/LC_MESSAGES/pantheon-calculator.mo +share/locale/ts/LC_MESSAGES/pantheon-calculator.mo +share/locale/tt/LC_MESSAGES/pantheon-calculator.mo +share/locale/tw/LC_MESSAGES/pantheon-calculator.mo +share/locale/ty/LC_MESSAGES/pantheon-calculator.mo +share/locale/udm/LC_MESSAGES/pantheon-calculator.mo +share/locale/ug/LC_MESSAGES/pantheon-calculator.mo +share/locale/uk/LC_MESSAGES/pantheon-calculator.mo +share/locale/ur/LC_MESSAGES/pantheon-calculator.mo +share/locale/uz/LC_MESSAGES/pantheon-calculator.mo +share/locale/ve/LC_MESSAGES/pantheon-calculator.mo +share/locale/vi/LC_MESSAGES/pantheon-calculator.mo +share/locale/vo/LC_MESSAGES/pantheon-calculator.mo +share/locale/wa/LC_MESSAGES/pantheon-calculator.mo +share/locale/wo/LC_MESSAGES/pantheon-calculator.mo +share/locale/xh/LC_MESSAGES/pantheon-calculator.mo +share/locale/yi/LC_MESSAGES/pantheon-calculator.mo +share/locale/yo/LC_MESSAGES/pantheon-calculator.mo +share/locale/za/LC_MESSAGES/pantheon-calculator.mo +share/locale/zh/LC_MESSAGES/pantheon-calculator.mo +share/locale/zh_CN/LC_MESSAGES/pantheon-calculator.mo +share/locale/zh_HK/LC_MESSAGES/pantheon-calculator.mo +share/locale/zh_TW/LC_MESSAGES/pantheon-calculator.mo +share/locale/zu/LC_MESSAGES/pantheon-calculator.mo