Skip to content

Commit

Permalink
net/geocode-glib2: New port
Browse files Browse the repository at this point in the history
  • Loading branch information
neelchauhan committed Jan 29, 2023
1 parent b85fae6 commit a327a06
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/Makefile
Expand Up @@ -181,6 +181,7 @@
SUBDIR += gemserv
SUBDIR += geoclue
SUBDIR += geocode-glib
SUBDIR += geocode-glib2
SUBDIR += geoipupdate
SUBDIR += gerbera
SUBDIR += gfbgraph
Expand Down
32 changes: 32 additions & 0 deletions net/geocode-glib2/Makefile
@@ -0,0 +1,32 @@
PORTNAME= geocode-glib
PORTVERSION= 3.26.4
CATEGORIES= net devel gnome
MASTER_SITES= GNOME
PKGNAMESUFFIX= 2

MAINTAINER= gnome@FreeBSD.org
COMMENT= Convenience library for the geocoding and reverse geocoding
WWW= https://git.gnome.org/browse/geocode-glib

LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING.LIB

LIB_DEPENDS= libjson-glib-1.0.so:devel/json-glib \
libsoup-3.0.so:devel/libsoup3
RUN_DEPENDS= geocode-glib>0:net/geocode-glib # for icons

PORTSCOUT= limitw:1,even

USES= gettext gnome localbase meson pkgconfig tar:xz
USE_GNOME= glib20 introspection:build
USE_LDCONFIG= yes
MESON_ARGS= -Denable-installed-tests=false \
-Dsoup2=false

OPTIONS_DEFINE= DOCS

DOCS_BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc
DOCS_MESON_TRUE= enable-gtk-doc
DOCSDIR= ${PREFIX}/share/gtk-doc/html/geocode-glib

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions net/geocode-glib2/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1668269418
SHA256 (geocode-glib-3.26.4.tar.xz) = 2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa
SIZE (geocode-glib-3.26.4.tar.xz) = 75352
10 changes: 10 additions & 0 deletions net/geocode-glib2/files/patch-meson.build
@@ -0,0 +1,10 @@
--- meson.build.orig 2023-01-29 02:37:22 UTC
+++ meson.build
@@ -47,7 +47,6 @@ endif

subdir('geocode-glib')
subdir('po')
-subdir('icons')

if get_option('enable-gtk-doc')
subdir('docs')
5 changes: 5 additions & 0 deletions net/geocode-glib2/pkg-descr
@@ -0,0 +1,5 @@
geocode-glib is a convenience library for the geocoding (finding longitude,
and latitude from an address) and reverse geocoding (finding an address from
coordinates). It uses Nominatim service to achieve that. It also caches
(reverse-)geocoding requests for faster results and to avoid unnecessary server
load.
39 changes: 39 additions & 0 deletions net/geocode-glib2/pkg-plist
@@ -0,0 +1,39 @@
include/geocode-glib-2.0/geocode-glib/geocode-backend.h
include/geocode-glib-2.0/geocode-glib/geocode-bounding-box.h
include/geocode-glib-2.0/geocode-glib/geocode-enum-types.h
include/geocode-glib-2.0/geocode-glib/geocode-error.h
include/geocode-glib-2.0/geocode-glib/geocode-forward.h
include/geocode-glib-2.0/geocode-glib/geocode-glib.h
include/geocode-glib-2.0/geocode-glib/geocode-location.h
include/geocode-glib-2.0/geocode-glib/geocode-mock-backend.h
include/geocode-glib-2.0/geocode-glib/geocode-nominatim.h
include/geocode-glib-2.0/geocode-glib/geocode-place.h
include/geocode-glib-2.0/geocode-glib/geocode-reverse.h
lib/girepository-1.0/GeocodeGlib-2.0.typelib
lib/libgeocode-glib-2.so
lib/libgeocode-glib-2.so.0
lib/libgeocode-glib-2.so.0.0.0
libdata/pkgconfig/geocode-glib-2.0.pc
share/gir-1.0/GeocodeGlib-2.0.gir
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeBackend.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeBoundingBox.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeForward.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeLocation.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeNominatim.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodePlace.html
%%PORTDOCS%%%%DOCSDIR%%-2/GeocodeReverse.html
%%PORTDOCS%%%%DOCSDIR%%-2/annotation-glossary.html
%%PORTDOCS%%%%DOCSDIR%%-2/api-index-full.html
%%PORTDOCS%%%%DOCSDIR%%-2/ch01.html
%%PORTDOCS%%%%DOCSDIR%%-2/geocode-glib-2-geocode-error.html
%%PORTDOCS%%%%DOCSDIR%%-2/geocode-glib-2-geocode-mock-backend.html
%%PORTDOCS%%%%DOCSDIR%%-2/geocode-glib-2.devhelp2
%%PORTDOCS%%%%DOCSDIR%%-2/home.png
%%PORTDOCS%%%%DOCSDIR%%-2/index.html
%%PORTDOCS%%%%DOCSDIR%%-2/left-insensitive.png
%%PORTDOCS%%%%DOCSDIR%%-2/left.png
%%PORTDOCS%%%%DOCSDIR%%-2/right-insensitive.png
%%PORTDOCS%%%%DOCSDIR%%-2/right.png
%%PORTDOCS%%%%DOCSDIR%%-2/style.css
%%PORTDOCS%%%%DOCSDIR%%-2/up-insensitive.png
%%PORTDOCS%%%%DOCSDIR%%-2/up.png

0 comments on commit a327a06

Please sign in to comment.