Skip to content

Commit 058ff8e

Browse files
committed
Import IBus template project.
0 parents  commit 058ff8e

16 files changed

+1053
-0
lines changed

.gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
*.pyc
2+
*.la
3+
*.lo
4+
*.loT
5+
*.o
6+
*.so
7+
*~
8+
tags
9+
Makefile.qmake
10+
Makefile
11+
Makefile.in
12+
.deps
13+
.libs
14+
ABOUT-NLS
15+
INSTALL
16+
aclocal.m4
17+
autom4te.cache
18+
compile
19+
config.guess
20+
config.h
21+
config.h.in
22+
config.log
23+
config.rpath
24+
config.status
25+
config.sub
26+
configure
27+
depcomp
28+
gtk-doc.make
29+
install-sh
30+
libtool
31+
ltmain.sh
32+
missing
33+
stamp-h1
34+
py-compile
35+
ibus-tmpl*.tar.*
36+
ibus-tmpl.spec

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Huang Peng <shawn.p.huang@gmail.com>

COPYING

+674
Large diffs are not rendered by default.

ChangeLog

Whitespace-only changes.

Makefile.am

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# vim:set noet ts=4:
2+
#
3+
# ibus - The Input Bus
4+
#
5+
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6+
#
7+
# This library is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU Lesser General Public
9+
# License as published by the Free Software Foundation; either
10+
# version 2 of the License, or (at your option) any later version.
11+
#
12+
# This library is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU Lesser General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU Lesser General Public
18+
# License along with this program; if not, write to the
19+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20+
# Boston, MA 02111-1307 USA
21+
SUBDIRS = \
22+
m4 \
23+
po \
24+
$(NULL)
25+
26+
ACLOCAL_AMFLAGS = -I m4
27+
28+
EXTRA_DIST = \
29+
autogen.sh \
30+
ibus-tmpl.spec.in \
31+
$(NULL)
32+
33+
noinst_DIST = \
34+
$(NULL)
35+
36+
37+
DISTCLEANFILES = \
38+
po/stamp-it \
39+
$(NULL)
40+
41+
rpm: dist ibus-tmpl.spec
42+
rpmbuild -bb \
43+
--define "_sourcedir `pwd`" \
44+
--define "_builddir `pwd`" \
45+
--define "_srcrpmdir `pwd`" \
46+
--define "_rpmdir `pwd`" \
47+
--define "_specdir `pwd`" \
48+
@PACKAGE_NAME@.spec
49+
clean-rpm:
50+
$(RM) -r "`uname -i`"
51+
52+
clean-local: clean-rpm

NEWS

Whitespace-only changes.

README

Whitespace-only changes.

autogen.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
set -x
4+
5+
autopoint
6+
libtoolize --automake --copy
7+
aclocal -I m4
8+
autoheader
9+
automake --add-missing --copy
10+
autoconf
11+
./configure --enable-maintainer-mode $*

configure.ac

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# vim:set noet ts=4:
2+
#
3+
# ibus-tmpl - The Input Bus template project
4+
#
5+
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6+
#
7+
# This library is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU Lesser General Public
9+
# License as published by the Free Software Foundation; either
10+
# version 2 of the License, or (at your option) any later version.
11+
#
12+
# This library is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU Lesser General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU Lesser General Public
18+
# License along with this program; if not, write to the
19+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20+
# Boston, MA 02111-1307 USA
21+
22+
# if not 1, append datestamp to the version number.
23+
m4_define([ibus_released], [0])
24+
m4_define([ibus_major_version], [0])
25+
m4_define([ibus_minor_version], [1])
26+
m4_define([ibus_micro_version], [0])
27+
m4_define(ibus_maybe_datestamp,
28+
m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
29+
30+
m4_define([ibus_version],
31+
ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
32+
33+
AC_INIT([ibus-tmpl], [ibus_version], [http://code.google.com/p/ibus/issues/entry],[ibus-tmpl])
34+
AM_INIT_AUTOMAKE([1.10])
35+
AC_GNU_SOURCE
36+
37+
AC_CONFIG_HEADERS([config.h])
38+
AC_CONFIG_MACRO_DIR([m4])
39+
40+
# define PACKAGE_VERSION_* variables
41+
AS_VERSION
42+
AS_NANO
43+
AM_SANITY_CHECK
44+
AM_MAINTAINER_MODE
45+
AM_DISABLE_STATIC
46+
AC_PROG_CC
47+
AM_PROG_CC_C_O
48+
AC_PROG_CXX
49+
AC_ISC_POSIX
50+
AC_HEADER_STDC
51+
AM_PROG_LIBTOOL
52+
53+
# define GETTEXT_* variables
54+
GETTEXT_PACKAGE=ibus-tmpl
55+
AC_SUBST(GETTEXT_PACKAGE)
56+
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.])
57+
58+
AM_GNU_GETTEXT([external])
59+
AM_GNU_GETTEXT_VERSION(0.16.1)
60+
61+
62+
# OUTPUT files
63+
AC_CONFIG_FILES([ po/Makefile.in
64+
Makefile
65+
ibus-tmpl.spec
66+
m4/Makefile
67+
])
68+
69+
AC_OUTPUT

ibus-tmpl.spec.in

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2+
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3+
%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
4+
Name: ibus-tmpl
5+
Version: @PACKAGE_VERSION@
6+
Release: 1%{?dist}
7+
Summary: IBus template project
8+
License: LGPLv2+
9+
Group: System Environment/Libraries
10+
URL: http://code.google.com/p/ibus/
11+
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
12+
13+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14+
BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser) gtk2-devel qt-devel
15+
Requires: pygtk2
16+
17+
%description
18+
IBus template project
19+
20+
%prep
21+
%setup -q
22+
23+
%build
24+
%configure --disable-static
25+
# make -C po update-gmo
26+
make %{?_smp_mflags}
27+
28+
%install
29+
rm -rf $RPM_BUILD_ROOT
30+
make DESTDIR=${RPM_BUILD_ROOT} install
31+
32+
# %find_lang %{name}
33+
34+
%clean
35+
rm -rf $RPM_BUILD_ROOT
36+
37+
%files
38+
# -f %{name}.lang
39+
%defattr(-,root,root,-)
40+
%doc AUTHORS COPYING README
41+
# %dir %{python_sitearch}/ibus
42+
# %{python_sitearch}/ibus/*
43+
# %dir %{_datadir}/ibus/
44+
# %dir %{_datadir}/ibus/daemon/
45+
# %dir %{_datadir}/ibus/panel/
46+
# %dir %{_datadir}/ibus/engine/
47+
# %dir %{_datadir}/ibus/icons/
48+
# %{_datadir}/ibus/daemon/*
49+
# %{_datadir}/ibus/panel/*
50+
# %{_datadir}/ibus/engine/*
51+
# %{_datadir}/ibus/icons/*
52+
# %{_libexecdir}/ibus-daemon
53+
# %{_libexecdir}/ibus-panel
54+
55+
%changelog
56+
* Wed Jun 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0-1
57+
- The first version.

m4/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.m4

m4/Makefile.am

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# vim:set noet ts=4:
2+
#
3+
# gik - The G Input Toolkit
4+
#
5+
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6+
#
7+
#
8+
# This library is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU Lesser General Public
10+
# License as published by the Free Software Foundation; either
11+
# version 2 of the License, or (at your option) any later version.
12+
#
13+
# This library is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
# GNU Lesser General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU Lesser General Public
19+
# License along with this program; if not, write to the
20+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21+
# Boston, MA 02111-1307 USA
22+
#
23+
# $Id: $
24+
#
25+
EXTRA_DIST = \
26+
as-version.m4 \
27+
$(NULL)

m4/as-version.m4

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
dnl as-version.m4 0.2.0
2+
3+
dnl autostars m4 macro for versioning
4+
5+
dnl Thomas Vander Stichele <thomas at apestaart dot org>
6+
7+
dnl $Id: as-version.m4,v 1.4 2004/06/01 09:40:05 thomasvs Exp $
8+
9+
dnl AS_VERSION
10+
11+
dnl example
12+
dnl AS_VERSION
13+
14+
dnl this macro
15+
dnl - AC_SUBST's PACKAGE_VERSION_MAJOR, _MINOR, _MICRO
16+
dnl - AC_SUBST's PACKAGE_VERSION_RELEASE,
17+
dnl which can be used for rpm release fields
18+
dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
19+
dnl maintainer mode from running correctly
20+
dnl
21+
dnl don't forget to put #undef PACKAGE_VERSION_RELEASE in acconfig.h
22+
dnl if you use acconfig.h
23+
24+
AC_DEFUN([AS_VERSION],
25+
[
26+
PACKAGE_VERSION_MAJOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f1)
27+
PACKAGE_VERSION_MINOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f2)
28+
PACKAGE_VERSION_MICRO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f3)
29+
30+
AC_SUBST(PACKAGE_VERSION_MAJOR)
31+
AC_SUBST(PACKAGE_VERSION_MINOR)
32+
AC_SUBST(PACKAGE_VERSION_MICRO)
33+
])
34+
35+
dnl AS_NANO(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
36+
37+
dnl requires AC_INIT to be called before
38+
dnl For projects using a fourth or nano number in your versioning to indicate
39+
dnl development or prerelease snapshots, this macro allows the build to be
40+
dnl set up differently accordingly.
41+
42+
dnl this macro:
43+
dnl - parses AC_PACKAGE_VERSION, set by AC_INIT, and extracts the nano number
44+
dnl - sets the variable PACKAGE_VERSION_NANO
45+
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
46+
dnl for rpm release fields
47+
dnl - executes ACTION-IF-NO-NANO or ACTION-IF-NANO
48+
49+
dnl example:
50+
dnl AS_NANO(RELEASE="yes", RELEASE="no")
51+
52+
AC_DEFUN([AS_NANO],
53+
[
54+
AC_MSG_CHECKING(nano version)
55+
56+
NANO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f4)
57+
58+
if test x"$NANO" = x || test "x$NANO" = "x0" ; then
59+
AC_MSG_RESULT([0 (release)])
60+
NANO=0
61+
PACKAGE_VERSION_RELEASE=1
62+
ifelse([$1], , :, [$1])
63+
else
64+
AC_MSG_RESULT($NANO)
65+
PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
66+
ifelse([$2], , :, [$2])
67+
fi
68+
PACKAGE_VERSION_NANO=$NANO
69+
AC_SUBST(PACKAGE_VERSION_NANO)
70+
AC_SUBST(PACKAGE_VERSION_RELEASE)
71+
])

po/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Makefile
2+
Makefile.in
3+
Makefile.in.in
4+
Makevars.template
5+
POTFILES
6+
Rules-quot
7+
boldquot.sed
8+
en@boldquot.header
9+
en@quot.header
10+
insert-header.sin
11+
quot.sed
12+
remove-potcdate.sed
13+
remove-potcdate.sin

po/Makevars

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Makefile variables for PO directory in any package using GNU gettext.
2+
3+
# Usually the message domain is the same as the package name.
4+
DOMAIN = $(PACKAGE)
5+
6+
# These two variables depend on the location of this directory.
7+
subdir = po
8+
top_builddir = ..
9+
10+
# These options get passed to xgettext.
11+
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
12+
13+
# This is the copyright holder that gets inserted into the header of the
14+
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
15+
# package. (Note that the msgstr strings, extracted from the package's
16+
# sources, belong to the copyright holder of the package.) Translators are
17+
# expected to transfer the copyright for their translations to this person
18+
# or entity, or to disclaim their copyright. The empty string stands for
19+
# the public domain; in this case the translators are expected to disclaim
20+
# their copyright.
21+
COPYRIGHT_HOLDER = Huang Peng <shawn.p.huang@gmail.com>
22+
23+
# This is the email address or URL to which the translators shall report
24+
# bugs in the untranslated strings:
25+
# - Strings which are not entire sentences, see the maintainer guidelines
26+
# in the GNU gettext documentation, section 'Preparing Strings'.
27+
# - Strings which use unclear terms or require additional context to be
28+
# understood.
29+
# - Strings which make invalid assumptions about notation of date, time or
30+
# money.
31+
# - Pluralisation problems.
32+
# - Incorrect English spelling.
33+
# - Incorrect formatting.
34+
# It can be your email address, or a mailing list address where translators
35+
# can write to without being subscribed, or the URL of a web page through
36+
# which the translators can contact you.
37+
MSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT)
38+
39+
# This is the list of locale categories, beyond LC_MESSAGES, for which the
40+
# message catalogs shall be used. It is usually empty.
41+
EXTRA_LOCALE_CATEGORIES =

po/POTFILES.in

Whitespace-only changes.

0 commit comments

Comments
 (0)