Skip to content

Commit

Permalink
alacarte: update patchfiles, reconfigure with our intltool.m4 to fix …
Browse files Browse the repository at this point in the history
…intltool configuration.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117721 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
dbevans committed Mar 9, 2014
1 parent f55aab6 commit 14d9801
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 79 deletions.
10 changes: 8 additions & 2 deletions gnome/alacarte/Portfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ depends_lib port:desktop-file-utils \
depends_run port:gnome-settings-daemon \ depends_run port:gnome-settings-daemon \
port:yelp port:yelp


patchfiles patch-Makefile.in.diff \ patchfiles patch-Makefile.am.diff \
patch-configure.diff \ patch-configure.ac.diff \
patch-acinclude.m4.diff \
patch-Alacarte-MenuEditor.py.diff patch-Alacarte-MenuEditor.py.diff


# reconfigure with our intltool.m4

use_autoreconf yes
autoreconf.args -fvi

post-destroot { post-destroot {
move ${destroot}${prefix}/bin/alacarte.py ${destroot}${prefix}/bin/alacarte move ${destroot}${prefix}/bin/alacarte.py ${destroot}${prefix}/bin/alacarte
} }
Expand Down
23 changes: 23 additions & 0 deletions gnome/alacarte/files/patch-Makefile.am.diff
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,23 @@
--- Makefile.am.orig 2014-03-09 09:04:17.000000000 -0700
+++ Makefile.am 2014-03-09 09:06:24.000000000 -0700
@@ -4,16 +4,16 @@

CLEANFILES=

-bin_SCRIPTS = alacarte
-CLEANFILES += alacarte
+bin_SCRIPTS = alacarte.py
+CLEANFILES += alacarte.py

DISTCLEANFILES = ChangeLog

-alacarte: alacarte.in
+alacarte.py: alacarte.in
$(AM_V_GEN)sed -e s!\@PYTHON\@!@PYTHON@! \
-e s!\@PYOPTIONS\@!-OOt! \
< $< > $@
-alacarte: Makefile
+alacarte.py: Makefile

EXTRA_DIST = \
alacarte.in \
27 changes: 0 additions & 27 deletions gnome/alacarte/files/patch-Makefile.in.diff

This file was deleted.

13 changes: 13 additions & 0 deletions gnome/alacarte/files/patch-acinclude.m4.diff
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,13 @@
--- acinclude.m4.orig 2014-03-09 09:22:23.000000000 -0700
+++ acinclude.m4 2014-03-09 09:23:17.000000000 -0700
@@ -79,8 +79,8 @@
dnl distinct variables so they can be overridden if need be. However,
dnl general consensus is that you shouldn't need this ability.

- AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
- AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
+ AC_SUBST([PYTHON_PREFIX], [`$PYTHON -c 'import sys; print(sys.prefix);'`])
+ AC_SUBST([PYTHON_EXEC_PREFIX], [`$PYTHON -c 'import sys; print(sys.exec_prefix);'`])

dnl At times (like when building shared libraries) you may want
dnl to know which OS platform Python thinks this is.
11 changes: 11 additions & 0 deletions gnome/alacarte/files/patch-configure.ac.diff
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
--- configure.ac.orig 2014-03-09 08:56:46.000000000 -0700
+++ configure.ac 2014-03-09 09:02:22.000000000 -0700
@@ -1,7 +1,7 @@
dnl -*- Mode: autoconf -*-
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
-AC_INIT(alacarte, 3.10.0, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
+AC_INIT(alacarte.py, 3.10.0, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR(alacarte.in)
AC_CONFIG_HEADERS([config.h])
50 changes: 0 additions & 50 deletions gnome/alacarte/files/patch-configure.diff

This file was deleted.

0 comments on commit 14d9801

Please sign in to comment.