Fixup distcheck, release 0.19
This commit is contained in:
parent
c3b7a84cbc
commit
7d6adc55a3
10
.gitignore
vendored
10
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*~
|
*~
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
*.deps
|
||||||
|
|
||||||
# Absolute
|
# Absolute
|
||||||
|
|
||||||
@ -19,7 +20,6 @@ missing
|
|||||||
py-compile
|
py-compile
|
||||||
stamp-h1
|
stamp-h1
|
||||||
dbus-installed.conf
|
dbus-installed.conf
|
||||||
|
|
||||||
intltool-extract
|
intltool-extract
|
||||||
intltool-extract.in
|
intltool-extract.in
|
||||||
intltool-merge
|
intltool-merge
|
||||||
@ -35,4 +35,10 @@ po/*.gmo
|
|||||||
sugar/__installed__.py
|
sugar/__installed__.py
|
||||||
tools/sugar-setup-activity
|
tools/sugar-setup-activity
|
||||||
shell/PresenceService/org.laptop.Presence.service
|
shell/PresenceService/org.laptop.Presence.service
|
||||||
threadframe/build
|
threadframe
|
||||||
|
config.guess
|
||||||
|
config.sub
|
||||||
|
depcomp
|
||||||
|
libtool
|
||||||
|
ltmain.sh
|
||||||
|
po/ChangeLog
|
||||||
|
21
Makefile.am
21
Makefile.am
@ -1,7 +1,24 @@
|
|||||||
SUBDIRS = activities shell sugar tools threadframe
|
SUBDIRS = activities po shell sugar tools threadframe
|
||||||
|
|
||||||
dbusconfdir = $(pkgdatadir)
|
dbusconfdir = $(pkgdatadir)
|
||||||
dbusconf_DATA = dbus-installed.conf
|
dbusconf_DATA = dbus-installed.conf
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
sugar/setup.py $(top_srcdir)/activities $(pkgdatadir)/activities $(bindir)/sugar-activity-factory
|
$(top_srcdir)/sugar/setup.py \
|
||||||
|
$(top_srcdir)/activities \
|
||||||
|
$(DESTDIR)$(pkgdatadir)/activities \
|
||||||
|
$(bindir)/sugar-activity-factory
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
rm -rf $(DESTDIR)$(pkgdatadir)/activities/*.activity
|
||||||
|
rm -rf $(DESTDIR)$(pkgdatadir)/activities/*.service
|
||||||
|
|
||||||
|
DISTCLEANFILES = \
|
||||||
|
intltool-extract \
|
||||||
|
intltool-merge \
|
||||||
|
intltool-update
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
intltool-merge.in \
|
||||||
|
intltool-update.in \
|
||||||
|
intltool-extract.in
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
AC_INIT([Sugar],[0.18],[],[sugar])
|
AC_INIT([Sugar],[0.19],[],[sugar])
|
||||||
|
|
||||||
AC_PREREQ([2.59])
|
AC_PREREQ([2.59])
|
||||||
|
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_SRCDIR([configure.ac])
|
AC_CONFIG_SRCDIR([configure.ac])
|
||||||
|
|
||||||
@ -9,7 +10,11 @@ AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
|
|||||||
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
AC_DISABLE_STATIC
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
AM_PATH_PYTHON
|
AM_PATH_PYTHON
|
||||||
|
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
||||||
|
|
||||||
#
|
#
|
||||||
# Setup GETTEXT
|
# Setup GETTEXT
|
||||||
|
62
m4/python.m4
Normal file
62
m4/python.m4
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
## this one is commonly used with AM_PATH_PYTHONDIR ...
|
||||||
|
dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
|
||||||
|
dnl Check if a module containing a given symbol is visible to python.
|
||||||
|
AC_DEFUN([AM_CHECK_PYMOD],
|
||||||
|
[AC_REQUIRE([AM_PATH_PYTHON])
|
||||||
|
py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
|
||||||
|
AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
|
||||||
|
AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
|
||||||
|
ifelse([$2],[], [prog="
|
||||||
|
import sys
|
||||||
|
try:
|
||||||
|
import $1
|
||||||
|
except ImportError:
|
||||||
|
sys.exit(1)
|
||||||
|
except:
|
||||||
|
sys.exit(0)
|
||||||
|
sys.exit(0)"], [prog="
|
||||||
|
import $1
|
||||||
|
$1.$2"])
|
||||||
|
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
|
||||||
|
then
|
||||||
|
eval "py_cv_mod_$py_mod_var=yes"
|
||||||
|
else
|
||||||
|
eval "py_cv_mod_$py_mod_var=no"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
|
||||||
|
if test "x$py_val" != xno; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
ifelse([$3], [],, [$3
|
||||||
|
])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
ifelse([$4], [],, [$4
|
||||||
|
])dnl
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl a macro to check for ability to create python extensions
|
||||||
|
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
|
||||||
|
dnl function also defines PYTHON_INCLUDES
|
||||||
|
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
|
||||||
|
[AC_REQUIRE([AM_PATH_PYTHON])
|
||||||
|
AC_MSG_CHECKING(for headers required to compile python extensions)
|
||||||
|
dnl deduce PYTHON_INCLUDES
|
||||||
|
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
||||||
|
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
||||||
|
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
||||||
|
if test "$py_prefix" != "$py_exec_prefix"; then
|
||||||
|
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
||||||
|
fi
|
||||||
|
AC_SUBST(PYTHON_INCLUDES)
|
||||||
|
dnl check if the headers exist:
|
||||||
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
|
||||||
|
AC_TRY_CPP([#include <Python.h>],dnl
|
||||||
|
[AC_MSG_RESULT(found)
|
||||||
|
$1],dnl
|
||||||
|
[AC_MSG_RESULT(not found)
|
||||||
|
$2])
|
||||||
|
CPPFLAGS="$save_CPPFLAGS"
|
||||||
|
])
|
@ -1,5 +1,5 @@
|
|||||||
shell/PresenceWindow.py
|
|
||||||
shell/StartPage.py
|
|
||||||
activities/browser/NavigationToolbar.py
|
activities/browser/NavigationToolbar.py
|
||||||
shell/shell.py
|
|
||||||
sugar/chat/ChatEditor.py
|
sugar/chat/ChatEditor.py
|
||||||
|
activities/chat/ChatActivity.py
|
||||||
|
activities/groupchat/GroupChatActivity.py
|
||||||
|
shell/PresenceView.py
|
||||||
|
@ -21,4 +21,4 @@ sugar_PYTHON = \
|
|||||||
PresenceView.py \
|
PresenceView.py \
|
||||||
Shell.py
|
Shell.py
|
||||||
|
|
||||||
EXTRA_DIST = sugar
|
EXTRA_DIST = $(bin_SCRIPTS)
|
||||||
|
@ -12,3 +12,7 @@ sugar_PYTHON = \
|
|||||||
Buddy.py \
|
Buddy.py \
|
||||||
PresenceService.py \
|
PresenceService.py \
|
||||||
Service.py
|
Service.py
|
||||||
|
|
||||||
|
DISTCLEANFILES = $(service_DATA)
|
||||||
|
|
||||||
|
EXTRA_DIST = $(service_in_files)
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
all:
|
INCLUDES = $(PYTHON_INCLUDES)
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
install:
|
threadframedir = $(pyexecdir)
|
||||||
python setup.py install --prefix=${prefix}
|
threadframe_la_LDFLAGS = -module -avoid-version
|
||||||
|
threadframe_LTLIBRARIES = threadframe.la
|
||||||
uninstall:
|
threadframe_la_SOURCES = threadframemodule.c
|
||||||
rm -f ${prefix}/lib/python2.4/site-packages/threadframe.so
|
|
||||||
|
|
||||||
clean:
|
|
||||||
python setup.py clean
|
|
||||||
-rm -rf build
|
|
||||||
-rm -f core *~ *.so *.o *.pyd *.a python*.def
|
|
||||||
|
Loading…
Reference in New Issue
Block a user