Import libdesktop-agnostic 0.3.92, dependency of newer awn.

This library provides an extensible configuration API, a unified
virtual file system API, and a desktop item editor (all with
pluggable backends) for GLib-based projects. It is not tied to any one
desktop environment, although there are desktop-specific modules.

ok jasper@
This commit is contained in:
landry 2011-09-22 13:17:11 +00:00
parent 8edc2d858d
commit 8aee2c9be6
8 changed files with 221 additions and 0 deletions

View File

@ -0,0 +1,62 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
COMMENT= desktop-agnostic library, apis and tools
V= 0.3.92
DISTNAME= libdesktop-agnostic-$V
CATEGORIES= x11
HOMEPAGE= https://launchpad.net/libdesktop-agnostic
# GPLv2/LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/0.4/$V/+download/
MODULES= devel/waf devel/gettext
SO_VERSION = 0.0
.for _lib in desktop-agnostic desktop-agnostic-ui desktop-agnostic-fdo desktop-agnostic-cfg desktop-agnostic-vfs
SHARED_LIBS += ${_lib} ${SO_VERSION}
.endfor
BUILD_DEPENDS= lang/vala
LIB_DEPENDS = x11/gtk+2 \
devel/gconf2 \
${MODPY_LIB_DEPENDS}
WANTLIB = GL ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0
WANTLIB += c cairo drm expat ffi fontconfig freetype gconf-2 gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 iconv intl m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs python2.7
WANTLIB += util xcb xcb-render xcb-shm z
CONFIGURE_ARGS = --config-backends=keyfile,gconf \
--vfs-backends=gio \
--desktop-entry-backends=glib
NO_REGRESS = Yes
CONFIGURE_ENV = CPPFLAGS=-I${LOCALBASE}/include
MAKE_ENV += SO_VERSION=${SO_VERSION}
post-configure:
#XXX big hammer to avoir -Wl,-h,libfoo.so.0
perl -pi -e "s/SONAME_ST.*/SONAME_ST=''/" ${WRKSRC}/build/c4che/default.cache.py
post-install:
# remove so symlinks
rm -f ${PREFIX}/lib/libdesktop-agnostic*.so{,??}
# move headers to the names the users of that lib uses
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-cfg,config}.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}vfs.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}ui.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}fdo.h
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libdesktop-agnostic-0.3.92.tar.gz) = QjdNImoh1XY3+XFz9rEFoQ==
RMD160 (libdesktop-agnostic-0.3.92.tar.gz) = eTb2Rzzga8bsAc8cxu3UNBiIi2I=
SHA1 (libdesktop-agnostic-0.3.92.tar.gz) = uL5tt/YYXw2d28YyzXIR8QQ8hbE=
SHA256 (libdesktop-agnostic-0.3.92.tar.gz) = infsnymazs3zig8QZnVmejktMUrDP06b6E+2lkiN01Q=
SIZE (libdesktop-agnostic-0.3.92.tar.gz) = 442653

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-data_wscript,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
--- data/wscript.orig Tue Sep 20 22:35:03 2011
+++ data/wscript Tue Sep 20 22:35:34 2011
@@ -46,7 +46,7 @@ def build(bld):
'DESKTOP_ENTRY_BACKEND': bld.env['BACKENDS_DE'][0],
}
ini.fun = misc.subst_func
- ini.install_path = '${SYSCONFDIR}/xdg/libdesktop-agnostic'
+ ini.install_path = '${PREFIX}/share/examples/libdesktop-agnostic'
if bld.env['GLADE_SUPPORT']:
bld.install_files('${GLADEUI_CATALOGDIR}', 'desktop-agnostic.xml')

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libdesktop-agnostic_vfs-glob_vala,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
--- libdesktop-agnostic/vfs-glob.vala.orig Tue Sep 20 20:09:31 2011
+++ libdesktop-agnostic/vfs-glob.vala Tue Sep 20 20:09:39 2011
@@ -62,7 +62,7 @@ namespace DesktopAgnostic.VFS
}
}
}
- private int _flags = glob_t.MARK | glob_t.BRACE | glob_t.TILDE_CHECK;
+ private int _flags = glob_t.MARK | glob_t.BRACE | glob_t.TILDE;
public int flags
{
get

View File

@ -0,0 +1,48 @@
$OpenBSD: patch-libdesktop-agnostic_wscript,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
--- libdesktop-agnostic/wscript.orig Tue Sep 20 22:39:43 2011
+++ libdesktop-agnostic/wscript Tue Sep 20 22:42:46 2011
@@ -123,7 +123,7 @@ def build(bld):
lib.packages_private = 'build'
lib.includes = '..'
lib.vapi_dirs = '../vapi'
- lib.vnum = bld.env['VNUM']
+ lib.vnum = bld.env['SO_VERSION']
vfs = bld.new_task_gen('cc', 'shlib')
vfs.source = ' '.join([
@@ -144,7 +144,7 @@ def build(bld):
vfs.packages_private = 'posix-glob'
vfs.includes = '..'
vfs.vapi_dirs = '../vapi .'
- vfs.vnum = bld.env['VNUM']
+ vfs.vnum = bld.env['SO_VERSION']
cfg = bld.new_task_gen('cc', 'shlib')
cfg.source = ' '.join([
@@ -164,7 +164,7 @@ def build(bld):
cfg.packages_private = 'hashtable-gtype-key'
cfg.includes = '..'
cfg.vapi_dirs = '../vapi .'
- cfg.vnum = bld.env['VNUM']
+ cfg.vnum = bld.env['SO_VERSION']
fdo = bld.new_task_gen('cc', 'shlib')
fdo.source = ' '.join([
@@ -178,7 +178,7 @@ def build(bld):
fdo.uselib_local = 'desktop-agnostic-vfs'
fdo.vapi_dirs = '.'
fdo.includes = '..'
- fdo.vnum = bld.env['VNUM']
+ fdo.vnum = bld.env['SO_VERSION']
ui = bld.new_task_gen('cc', 'shlib')
ui.source = ' '.join([
@@ -197,7 +197,7 @@ def build(bld):
ui.uselib_local = 'desktop-agnostic-fdo'
ui.vapi_dirs = '. ../vapi'
ui.includes = '..'
- ui.vnum = bld.env['VNUM']
+ ui.vnum = bld.env['SO_VERSION']
[task_module('cfg', 'config-impl')(bld, name)
for name in bld.env['BACKENDS_CFG']]

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-wscript,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
--- wscript.orig Sun Mar 13 16:09:47 2011
+++ wscript Tue Sep 20 23:01:20 2011
@@ -92,6 +92,7 @@ def configure(conf):
conf.env['PROFILING'] = Options.options.profiling
conf.env['INTROSPECTION'] = not Options.options.no_gi
conf.env['VNUM'] = str(VNUM)
+ conf.env['SO_VERSION'] = os.environ['SO_VERSION']
conf.check_tool('gnu_dirs')
conf.check_tool('compiler_cc intltool misc python vala')
@@ -183,6 +184,7 @@ version %d.%d.%d''' % ((str(conf.env['VALAC_VERSION'])
conf.env.append_value('CCFLAGS', '-D_GNU_SOURCE')
conf.env.append_value('CCFLAGS', '-DHAVE_BUILD_CONFIG_H')
+ conf.env.append_value('CCFLAGS', '-I../gen_src')
conf.write_config_header('build-config.h')

View File

@ -0,0 +1,4 @@
This library provides an extensible configuration API, a unified
virtual file system API, and a desktop item editor (all with
pluggable backends) for GLib-based projects. It is not tied to any one
desktop environment, although there are desktop-specific modules.

View File

@ -0,0 +1,59 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/09/22 13:17:11 landry Exp $
@bin bin/lda-desktop-entry-editor
@bin bin/lda-schema-to-gconf
include/libdesktop-agnostic-1.0/
include/libdesktop-agnostic-1.0/libdesktop-agnostic/
include/libdesktop-agnostic-1.0/libdesktop-agnostic/config.h
include/libdesktop-agnostic-1.0/libdesktop-agnostic/desktop-agnostic.h
include/libdesktop-agnostic-1.0/libdesktop-agnostic/fdo.h
include/libdesktop-agnostic-1.0/libdesktop-agnostic/ui.h
include/libdesktop-agnostic-1.0/libdesktop-agnostic/vfs.h
lib/desktop-agnostic/
lib/desktop-agnostic/modules/
lib/desktop-agnostic/modules/libda-cfg-gconf.so
lib/desktop-agnostic/modules/libda-cfg-keyfile.so
lib/desktop-agnostic/modules/libda-cfg-type-color.so
lib/desktop-agnostic/modules/libda-fdo-glib.so
lib/desktop-agnostic/modules/libda-module-guesser.so
lib/desktop-agnostic/modules/libda-vfs-gio.so
@lib lib/libdesktop-agnostic-cfg.so.${LIBdesktop-agnostic-cfg_VERSION}
@lib lib/libdesktop-agnostic-fdo.so.${LIBdesktop-agnostic-fdo_VERSION}
@lib lib/libdesktop-agnostic-ui.so.${LIBdesktop-agnostic-ui_VERSION}
@lib lib/libdesktop-agnostic-vfs.so.${LIBdesktop-agnostic-vfs_VERSION}
@lib lib/libdesktop-agnostic.so.${LIBdesktop-agnostic_VERSION}
lib/pkgconfig/desktop-agnostic.pc
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/__init__.py
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/config.so
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/desktopagnostic.so
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/fdo.so
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/ui.so
lib/python${MODPY_VERSION}/site-packages/desktopagnostic/vfs.so
share/examples/libdesktop-agnostic/
@sample ${SYSCONFDIR}/xdg/
@sample ${SYSCONFDIR}/xdg/libdesktop-agnostic/
share/examples/libdesktop-agnostic/desktop-agnostic.ini
@sample ${SYSCONFDIR}/xdg/libdesktop-agnostic/desktop-agnostic.ini
share/locale/en_US@piglatin/
share/locale/en_US@piglatin/LC_MESSAGES/
share/locale/en_US@piglatin/LC_MESSAGES/libdesktop-agnostic.mo
share/pygtk/
share/pygtk/2.0/
share/pygtk/2.0/defs/
share/pygtk/2.0/defs/desktopagnostic.defs
share/pygtk/2.0/defs/desktopagnostic_config.defs
share/pygtk/2.0/defs/desktopagnostic_fdo.defs
share/pygtk/2.0/defs/desktopagnostic_ui.defs
share/pygtk/2.0/defs/desktopagnostic_vfs.defs
share/vala/
share/vala/vapi/
share/vala/vapi/desktop-agnostic-cfg.deps
share/vala/vapi/desktop-agnostic-cfg.vapi
share/vala/vapi/desktop-agnostic-fdo.deps
share/vala/vapi/desktop-agnostic-fdo.vapi
share/vala/vapi/desktop-agnostic-ui.deps
share/vala/vapi/desktop-agnostic-ui.vapi
share/vala/vapi/desktop-agnostic-vfs.deps
share/vala/vapi/desktop-agnostic-vfs.vapi
share/vala/vapi/desktop-agnostic.deps
share/vala/vapi/desktop-agnostic.vapi