summaryrefslogtreecommitdiffstats
path: root/main/libgnome
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:24:50 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:24:50 -0600
commitbff1dc0cff0e2e20bed644e348e07e4178a7606b (patch)
treef9d93b9907ab2209b7e09be55c65344367291231 /main/libgnome
parent12c89efce4b226de2ac5fc8ed81ed31b5d2402b5 (diff)
downloadaports-bff1dc0cff0e2e20bed644e348e07e4178a7606b.tar.bz2
aports-bff1dc0cff0e2e20bed644e348e07e4178a7606b.tar.xz
testing/libgnome: promote to main
Diffstat (limited to 'main/libgnome')
-rw-r--r--main/libgnome/APKBUILD43
-rw-r--r--main/libgnome/libgnome.post-install26
-rw-r--r--main/libgnome/libgnome.post-upgrade26
-rw-r--r--main/libgnome/libgnome.pre-deinstall26
4 files changed, 121 insertions, 0 deletions
diff --git a/main/libgnome/APKBUILD b/main/libgnome/APKBUILD
new file mode 100644
index 000000000..75e07711a
--- /dev/null
+++ b/main/libgnome/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=libgnome
+pkgver=2.32.0
+pkgrel=0
+pkgdesc="GNOME base library"
+url="http://www.gnome.org/"
+arch="all"
+license="LGPL"
+depends=
+depends_dev="gtk+-dev gconf-dev libcanberra-dev gnome-vfs-dev libbonobo-dev"
+makedepends="$depends_dev"
+install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
+
+_builddir="${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-scrollkeeper
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="b27a0c61918fad8492d84b407a72bd7c libgnome-2.32.0.tar.bz2"
diff --git a/main/libgnome/libgnome.post-install b/main/libgnome/libgnome.post-install
new file mode 100644
index 000000000..89ba3aca5
--- /dev/null
+++ b/main/libgnome/libgnome.post-install
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+for i in \
+ desktop_gnome_accessibility_keyboard.schemas \
+ desktop_gnome_accessibility_startup.schemas \
+ desktop_gnome_applications_at_mobility.schemas \
+ desktop_gnome_applications_at_visual.schemas \
+ desktop_gnome_applications_browser.schemas \
+ desktop_gnome_applications_office.schemas \
+ desktop_gnome_applications_terminal.schemas \
+ desktop_gnome_applications_window_manager.schemas \
+ desktop_gnome_background.schemas \
+ desktop_gnome_file_views.schemas \
+ desktop_gnome_interface.schemas \
+ desktop_gnome_lockdown.schemas \
+ desktop_gnome_peripherals_keyboard.schemas \
+ desktop_gnome_peripherals_mouse.schemas \
+ desktop_gnome_sound.schemas \
+ desktop_gnome_thumbnail_cache.schemas \
+ desktop_gnome_thumbnailers.schemas \
+ desktop_gnome_typing_break.schemas \
+; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i > /dev/null
+done
diff --git a/main/libgnome/libgnome.post-upgrade b/main/libgnome/libgnome.post-upgrade
new file mode 100644
index 000000000..89ba3aca5
--- /dev/null
+++ b/main/libgnome/libgnome.post-upgrade
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+for i in \
+ desktop_gnome_accessibility_keyboard.schemas \
+ desktop_gnome_accessibility_startup.schemas \
+ desktop_gnome_applications_at_mobility.schemas \
+ desktop_gnome_applications_at_visual.schemas \
+ desktop_gnome_applications_browser.schemas \
+ desktop_gnome_applications_office.schemas \
+ desktop_gnome_applications_terminal.schemas \
+ desktop_gnome_applications_window_manager.schemas \
+ desktop_gnome_background.schemas \
+ desktop_gnome_file_views.schemas \
+ desktop_gnome_interface.schemas \
+ desktop_gnome_lockdown.schemas \
+ desktop_gnome_peripherals_keyboard.schemas \
+ desktop_gnome_peripherals_mouse.schemas \
+ desktop_gnome_sound.schemas \
+ desktop_gnome_thumbnail_cache.schemas \
+ desktop_gnome_thumbnailers.schemas \
+ desktop_gnome_typing_break.schemas \
+; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i > /dev/null
+done
diff --git a/main/libgnome/libgnome.pre-deinstall b/main/libgnome/libgnome.pre-deinstall
new file mode 100644
index 000000000..5a070981e
--- /dev/null
+++ b/main/libgnome/libgnome.pre-deinstall
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+for i in \
+ desktop_gnome_accessibility_keyboard.schemas \
+ desktop_gnome_accessibility_startup.schemas \
+ desktop_gnome_applications_at_mobility.schemas \
+ desktop_gnome_applications_at_visual.schemas \
+ desktop_gnome_applications_browser.schemas \
+ desktop_gnome_applications_office.schemas \
+ desktop_gnome_applications_terminal.schemas \
+ desktop_gnome_applications_window_manager.schemas \
+ desktop_gnome_background.schemas \
+ desktop_gnome_file_views.schemas \
+ desktop_gnome_interface.schemas \
+ desktop_gnome_lockdown.schemas \
+ desktop_gnome_peripherals_keyboard.schemas \
+ desktop_gnome_peripherals_mouse.schemas \
+ desktop_gnome_sound.schemas \
+ desktop_gnome_thumbnail_cache.schemas \
+ desktop_gnome_thumbnailers.schemas \
+ desktop_gnome_typing_break.schemas \
+; do
+ echo "Uninstalling GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$i > /dev/null
+done