aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolivierd <olivierd@FreeBSD.org>2014-02-11 02:36:55 +0800
committerolivierd <olivierd@FreeBSD.org>2014-02-11 02:36:55 +0800
commitf32688492d2a05cadbdd7fd4cb71c05387650ee1 (patch)
treedd693bcbe0ca69bf0cfcc14a8f2a08ca555cb590
parent6466b0a126f64ffd571a2993217029aaac3c3942 (diff)
downloadfreebsd-ports-gnome-f32688492d2a05cadbdd7fd4cb71c05387650ee1.tar.gz
freebsd-ports-gnome-f32688492d2a05cadbdd7fd4cb71c05387650ee1.tar.zst
freebsd-ports-gnome-f32688492d2a05cadbdd7fd4cb71c05387650ee1.zip
Granite is an extension of Gtk+ toolkit. It provides several widgets and
classes that ease desktop applications development. WWW: https://launchpad.net/granite
-rw-r--r--x11-toolkits/Makefile1
-rw-r--r--x11-toolkits/granite/Makefile30
-rw-r--r--x11-toolkits/granite/distinfo2
-rw-r--r--x11-toolkits/granite/files/patch-CMakeLists.txt62
-rw-r--r--x11-toolkits/granite/files/patch-cmake__FindGObjectIntrospection.cmake21
-rw-r--r--x11-toolkits/granite/files/patch-lib__CMakeLists.txt16
-rw-r--r--x11-toolkits/granite/files/patch-lib__granite.pc.cmake9
-rw-r--r--x11-toolkits/granite/pkg-descr4
-rw-r--r--x11-toolkits/granite/pkg-plist90
9 files changed, 235 insertions, 0 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index 4471e861ac72..5ca4edb8890b 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -38,6 +38,7 @@
SUBDIR += gnomemm
SUBDIR += gnustep-back
SUBDIR += gnustep-gui
+ SUBDIR += granite
SUBDIR += gstreamer-plugins-pango
SUBDIR += gstreamer1-plugins-pango
SUBDIR += gtk-sharp-beans
diff --git a/x11-toolkits/granite/Makefile b/x11-toolkits/granite/Makefile
new file mode 100644
index 000000000000..7b76523cdcbb
--- /dev/null
+++ b/x11-toolkits/granite/Makefile
@@ -0,0 +1,30 @@
+# Created by: Olivier Duchateau
+# $FreeBSD$
+#
+
+PORTNAME= granite
+PORTVERSION= 0.2.3
+CATEGORIES= x11-toolkits
+MASTER_SITES= https://launchpadlibrarian.net/159802745/ \
+ https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz
+
+
+MAINTAINER= olivierd@FreeBSD.org
+COMMENT= Extensions of Gtk+ toolkit
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= valac:${PORTSDIR}/lang/vala
+LIB_DEPENDS= libgee-0.8.so:${PORTSDIR}/devel/libgee
+
+USE_GCC= yes
+USES= cmake pkgconfig gettext
+USE_GNOME= glib20 gtk30 introspection:build
+INSTALLS_ICONS= yes
+USE_LDCONFIG= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|gee-1.0|gee-0.8|' ${WRKSRC}/lib/granite.deps
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/granite/distinfo b/x11-toolkits/granite/distinfo
new file mode 100644
index 000000000000..46d1d1659da1
--- /dev/null
+++ b/x11-toolkits/granite/distinfo
@@ -0,0 +1,2 @@
+SHA256 (granite-0.2.3.tgz) = e0a448e647ee4b6dcff543b1d8695e9cb7e630e38c31ba741cf6b19eddae71f1
+SIZE (granite-0.2.3.tgz) = 152936
diff --git a/x11-toolkits/granite/files/patch-CMakeLists.txt b/x11-toolkits/granite/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..0357d48a268e
--- /dev/null
+++ b/x11-toolkits/granite/files/patch-CMakeLists.txt
@@ -0,0 +1,62 @@
+--- ./CMakeLists.txt.orig 2013-12-15 12:43:00.000000000 +0000
++++ ./CMakeLists.txt 2013-12-26 19:54:31.000000000 +0000
+@@ -24,12 +24,28 @@
+ include (CPack)
+ add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
+
++find_package (PkgConfig)
+ find_package (Vala REQUIRED)
+ include (ValaVersion)
+ include (ValaPrecompile)
+
+ ensure_vala_version ("0.20.1" MINIMUM)
+
++message ("-- Checking for libgee...")
++# libgee <= 0.6
++pkg_check_modules (GEE_10 gee-1.0)
++if (GEE_10_FOUND)
++ set (GEE_PACKAGE gee-1.0)
++ set (GEE_GIR Gee-1.0)
++else ()
++ # libgee >= 0.8
++ pkg_check_modules (GEE_08 gee-0.8)
++ if (GEE_08_FOUND)
++ set (GEE_PACKAGE gee-0.8)
++ set (GEE_GIR Gee-0.8)
++ endif ()
++endif ()
++
+ #
+ # Packages in PKG_DEPS are used with the vala compiler and other related tools (not versioned.)
+ # Packages in PKG_DEPS_CHECK are used with PKG-Config and for linking, etc. They can contain versions.
+@@ -42,19 +58,18 @@
+ gtk+-3.0
+ gio-unix-2.0
+ posix
+- gee-1.0)
++ ${GEE_PACKAGE})
+
+ set (PKG_DEPS_CHECK
+ gtk+-3.0>=3.3.14
+ gio-unix-2.0
+ gthread-2.0
+- gee-1.0)
++ ${GEE_PACKAGE})
+
+ # GI dependencies
+-set (GI_PKG_DEPS Gtk-3.0 Gee-1.0)
++set (GI_PKG_DEPS Gtk-3.0 ${GEE_GIR})
+
+ # Check for the deps
+-find_package (PkgConfig)
+ pkg_check_modules (DEPS REQUIRED ${PKG_DEPS_CHECK})
+
+ set (VALAC_OPTIONS
+@@ -66,7 +81,6 @@
+ endif ()
+
+ add_subdirectory (lib)
+-add_subdirectory (demo)
+ add_subdirectory (doc)
+ add_subdirectory (po)
+ add_subdirectory (icons)
diff --git a/x11-toolkits/granite/files/patch-cmake__FindGObjectIntrospection.cmake b/x11-toolkits/granite/files/patch-cmake__FindGObjectIntrospection.cmake
new file mode 100644
index 000000000000..3dae38e5addd
--- /dev/null
+++ b/x11-toolkits/granite/files/patch-cmake__FindGObjectIntrospection.cmake
@@ -0,0 +1,21 @@
+--- ./cmake/FindGObjectIntrospection.cmake.orig 2013-08-10 02:01:58.000000000 +0000
++++ ./cmake/FindGObjectIntrospection.cmake 2013-09-28 15:03:47.000000000 +0000
+@@ -50,6 +50,18 @@
+ endif()
+ endif()
+
++if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
++ string (REPLACE "/usr/local"
++ ${CMAKE_INSTALL_PREFIX} GIR_DIR ${INTROSPECTION_GIRDIR})
++ unset (INTROSPECTION_GIRDIR)
++ set (INTROSPECTION_GIRDIR ${GIR_DIR})
++
++ string (REPLACE "/usr/local"
++ ${CMAKE_INSTALL_PREFIX} TYPELIB_DIR ${INTROSPECTION_TYPELIBDIR})
++ unset (INTROSPECTION_TYPELIBDIR)
++ set (INTROSPECTION_TYPELIBDIR ${TYPELIB_DIR})
++endif ()
++
+ mark_as_advanced(
+ INTROSPECTION_SCANNER
+ INTROSPECTION_COMPILER
diff --git a/x11-toolkits/granite/files/patch-lib__CMakeLists.txt b/x11-toolkits/granite/files/patch-lib__CMakeLists.txt
new file mode 100644
index 000000000000..58a9e0036037
--- /dev/null
+++ b/x11-toolkits/granite/files/patch-lib__CMakeLists.txt
@@ -0,0 +1,16 @@
+--- ./lib/CMakeLists.txt.orig 2013-08-10 02:01:58.000000000 +0000
++++ ./lib/CMakeLists.txt 2013-09-28 15:05:02.000000000 +0000
+@@ -63,7 +63,12 @@
+ if(NOT DEFINED LIB_INSTALL_DIR)
+ set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+ endif()
+-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
++
++if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
++ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig)
++else ()
++ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
++endif ()
+
+ # Link all
+ set (CFLAGS ${DEPS_CFLAGS} ${DEPS_CFLAGS_OTHER})
diff --git a/x11-toolkits/granite/files/patch-lib__granite.pc.cmake b/x11-toolkits/granite/files/patch-lib__granite.pc.cmake
new file mode 100644
index 000000000000..b15a9bf885f4
--- /dev/null
+++ b/x11-toolkits/granite/files/patch-lib__granite.pc.cmake
@@ -0,0 +1,9 @@
+--- ./lib/granite.pc.cmake.orig 2013-08-10 02:01:58.000000000 +0000
++++ ./lib/granite.pc.cmake 2013-11-20 23:13:44.000000000 +0000
+@@ -8,5 +8,5 @@
+ Version: @PKG_VERSION@
+ Libs: -L@DOLLAR@{libdir} -l@PKG_NAME@
+ Cflags: -I@DOLLAR@{includedir}/@PKG_NAME@
+-Requires: cairo gee-1.0 glib-2.0 gio-unix-2.0 gobject-2.0 gthread-2.0 gdk-3.0 gdk-pixbuf-2.0 gtk+-3.0
++Requires: cairo @GEE_PACKAGE@ glib-2.0 gio-unix-2.0 gobject-2.0 gthread-2.0 gdk-3.0 gdk-pixbuf-2.0 gtk+-3.0
+
diff --git a/x11-toolkits/granite/pkg-descr b/x11-toolkits/granite/pkg-descr
new file mode 100644
index 000000000000..7a6980979e6c
--- /dev/null
+++ b/x11-toolkits/granite/pkg-descr
@@ -0,0 +1,4 @@
+Granite is an extension of Gtk+ toolkit. It provides several widgets and
+classes that ease desktop applications development.
+
+WWW: https://launchpad.net/granite
diff --git a/x11-toolkits/granite/pkg-plist b/x11-toolkits/granite/pkg-plist
new file mode 100644
index 000000000000..1f8a751593c0
--- /dev/null
+++ b/x11-toolkits/granite/pkg-plist
@@ -0,0 +1,90 @@
+include/granite/granite.h
+include/granite/widgets-utils.h
+lib/girepository-1.0/Granite-1.0.typelib
+lib/libgranite.so
+lib/libgranite.so.1
+lib/libgranite.so.1.0.1
+libdata/pkgconfig/granite.pc
+share/gir-1.0/Granite-1.0.gir
+share/icons/hicolor/16x16/actions/application-menu.svg
+share/icons/hicolor/22x22/actions/application-menu.svg
+share/icons/hicolor/24x24/actions/application-menu.svg
+share/icons/hicolor/32x32/actions/application-menu.svg
+share/icons/hicolor/48x48/actions/application-menu.svg
+share/icons/hicolor/scalable/actions/application-menu-symbolic.svg
+share/locale/af/LC_MESSAGES/granite.mo
+share/locale/am/LC_MESSAGES/granite.mo
+share/locale/ar/LC_MESSAGES/granite.mo
+share/locale/be/LC_MESSAGES/granite.mo
+share/locale/bg/LC_MESSAGES/granite.mo
+share/locale/bs/LC_MESSAGES/granite.mo
+share/locale/ca/LC_MESSAGES/granite.mo
+share/locale/cs/LC_MESSAGES/granite.mo
+share/locale/da/LC_MESSAGES/granite.mo
+share/locale/de/LC_MESSAGES/granite.mo
+share/locale/el/LC_MESSAGES/granite.mo
+share/locale/en_AU/LC_MESSAGES/granite.mo
+share/locale/en_CA/LC_MESSAGES/granite.mo
+share/locale/en_GB/LC_MESSAGES/granite.mo
+share/locale/eo/LC_MESSAGES/granite.mo
+share/locale/es/LC_MESSAGES/granite.mo
+share/locale/et/LC_MESSAGES/granite.mo
+share/locale/eu/LC_MESSAGES/granite.mo
+share/locale/fa/LC_MESSAGES/granite.mo
+share/locale/fi/LC_MESSAGES/granite.mo
+share/locale/fr/LC_MESSAGES/granite.mo
+share/locale/fr_CA/LC_MESSAGES/granite.mo
+share/locale/fy/LC_MESSAGES/granite.mo
+share/locale/gl/LC_MESSAGES/granite.mo
+share/locale/he/LC_MESSAGES/granite.mo
+share/locale/hi/LC_MESSAGES/granite.mo
+share/locale/hr/LC_MESSAGES/granite.mo
+share/locale/hu/LC_MESSAGES/granite.mo
+share/locale/id/LC_MESSAGES/granite.mo
+share/locale/it/LC_MESSAGES/granite.mo
+share/locale/ja/LC_MESSAGES/granite.mo
+share/locale/ko/LC_MESSAGES/granite.mo
+share/locale/lb/LC_MESSAGES/granite.mo
+share/locale/lt/LC_MESSAGES/granite.mo
+share/locale/lv/LC_MESSAGES/granite.mo
+share/locale/ms/LC_MESSAGES/granite.mo
+share/locale/nb/LC_MESSAGES/granite.mo
+share/locale/nl/LC_MESSAGES/granite.mo
+share/locale/nn/LC_MESSAGES/granite.mo
+share/locale/pl/LC_MESSAGES/granite.mo
+share/locale/pt/LC_MESSAGES/granite.mo
+share/locale/pt_BR/LC_MESSAGES/granite.mo
+share/locale/ro/LC_MESSAGES/granite.mo
+share/locale/ru/LC_MESSAGES/granite.mo
+share/locale/rue/LC_MESSAGES/granite.mo
+share/locale/sk/LC_MESSAGES/granite.mo
+share/locale/sl/LC_MESSAGES/granite.mo
+share/locale/sma/LC_MESSAGES/granite.mo
+share/locale/sr/LC_MESSAGES/granite.mo
+share/locale/sv/LC_MESSAGES/granite.mo
+share/locale/te/LC_MESSAGES/granite.mo
+share/locale/tr/LC_MESSAGES/granite.mo
+share/locale/ug/LC_MESSAGES/granite.mo
+share/locale/uk/LC_MESSAGES/granite.mo
+share/locale/vi/LC_MESSAGES/granite.mo
+share/locale/zh_CN/LC_MESSAGES/granite.mo
+share/locale/zh_TW/LC_MESSAGES/granite.mo
+share/vala/vapi/granite.deps
+share/vala/vapi/granite.vapi
+@dirrmtry share/vala/vapi
+@dirrmtry share/vala
+@dirrmtry share/locale/ug/LC_MESSAGES
+@dirrmtry share/locale/ug
+@dirrmtry share/locale/te/LC_MESSAGES
+@dirrmtry share/locale/te
+@dirrmtry share/locale/sma/LC_MESSAGES
+@dirrmtry share/locale/sma
+@dirrmtry share/locale/rue/LC_MESSAGES
+@dirrmtry share/locale/rue
+@dirrmtry share/locale/lb/LC_MESSAGES
+@dirrmtry share/locale/lb
+@dirrmtry share/locale/fy/LC_MESSAGES
+@dirrmtry share/locale/fy
+@dirrmtry share/locale/fr_CA/LC_MESSAGES
+@dirrmtry share/locale/fr_CA
+@dirrm include/granite