summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-29 21:01:41 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-29 21:01:41 (EDT)
commitea1a63cb603809f3cd54854c4790d5c5505284ec (patch)
treea91486c1ee5b7264ef464583a35d92f96efe139b
downloadpyphen-ea1a63cb603809f3cd54854c4790d5c5505284ec.zip
pyphen-ea1a63cb603809f3cd54854c4790d5c5505284ec.tar.gz
pyphen-ea1a63cb603809f3cd54854c4790d5c5505284ec.tar.bz2
Initial commit.
-rw-r--r--.gitignore4
-rw-r--r--debian/.gitignore9
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control62
-rw-r--r--debian/copyright33
-rw-r--r--debian/docs1
-rw-r--r--debian/pyphen-dictionaries.install1
-rw-r--r--debian/python-pyphen.install1
-rw-r--r--debian/python-pyphen.postinst.debhelper7
-rw-r--r--debian/python-pyphen.prerm.debhelper12
-rw-r--r--debian/python3-pyphen.install1
-rw-r--r--debian/python3-pyphen.postinst.debhelper7
-rw-r--r--debian/python3-pyphen.prerm.debhelper10
-rwxr-xr-xdebian/rules56
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
17 files changed, 214 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..70af57f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!*/
+!debian/*
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..188a850
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,9 @@
+!.gitignore
+!*
+files
+*.debhelper.log
+*.substvars
+tmp/
+python-pyphen/
+python3-pyphen/
+pyphen-dictionaries/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..22ffdef
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pyphen (0.8-1) unstable; urgency=low
+
+ * Initial release
+
+ -- "P. J. McDermott" <pj@pehjota.net> Tue, 29 Oct 2013 12:41:49 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a09bd5f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: pyphen
+Section: python
+Priority: optional
+Maintainer: "P. J. McDermott" <pj@pehjota.net>
+Build-Depends: debhelper (>= 9),
+# Needed to build Python 2 modules:
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+# Needed to build Python 3 modules:
+ python3-all (>= 3.1.2-7~),
+ python3-setuptools,
+Standards-Version: 3.9.4
+Homepage: http://pyphen.org/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.1
+
+Package: python-pyphen
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+ pyphen-dictionaries (= ${binary:Version}),
+Description: Python module to hyphenate text (Python 2)
+ Pyphen is a pure Python module to hyphenate text using existing Hunspell
+ hyphenation dictionaries.
+ .
+ This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+ .
+ Many dictionaries are included in pyphen, they come from the LibreOffice Git
+ repository and are distributed under GPL, LGPL and/or MPL. See the
+ dictionaries and LibreOffice's repository for more details.
+ .
+ This package provides the Python 2 Pyphen hypenation module.
+
+Package: python3-pyphen
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+ pyphen-dictionaries (= ${binary:Version}),
+Description: Python module to hyphenate text (Python 3)
+ Pyphen is a pure Python module to hyphenate text using existing Hunspell
+ hyphenation dictionaries.
+ .
+ This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+ .
+ Many dictionaries are included in pyphen, they come from the LibreOffice Git
+ repository and are distributed under GPL, LGPL and/or MPL. See the
+ dictionaries and LibreOffice's repository for more details.
+ .
+ This package provides the Python 3 Pyphen hypenation module.
+
+Package: pyphen-dictionaries
+Architecture: all
+Depends: ${misc:Depends},
+Description: Python module to hyphenate text - dictionaries
+ Pyphen is a pure Python module to hyphenate text using existing Hunspell
+ hyphenation dictionaries.
+ .
+ This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+ .
+ Many dictionaries are included in pyphen, they come from the LibreOffice Git
+ repository and are distributed under GPL, LGPL and/or MPL. See the
+ dictionaries and LibreOffice's repository for more details.
+ .
+ This package provides the hyphenation dictionaries for the Pyphen module.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..769d417
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Pyphen
+Source: https://pypi.python.org/pypi/Pyphen
+
+Files: pyphen.py
+Copyright: 2008 Wilbert Berendsen <info@wilbertberendsen.nl>
+ 2012-2013 Guillaume Ayoub <guillaume.ayoub@kozea.fr>
+License: LGPL-2.1+
+
+Files: dictionaries/*
+Copyright: multiple (TODO)
+License: GPL-2.0+, LGPL-2.1+, MPL-1.1
+
+Files: debian/*
+Copyright: 2013 Patrick "P. J." McDermott <pj@pehjota.net>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+ This library is free software: you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free
+ Software Foundation, either version 2.1 of the License, or (at your option)
+ any later version.
+ .
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with Pyphen. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU Lesser General Public License
+ version 2.1 can be found in the file `/usr/share/common-licenses/LGPL-2.1'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/pyphen-dictionaries.install b/debian/pyphen-dictionaries.install
new file mode 100644
index 0000000..88fc1df
--- /dev/null
+++ b/debian/pyphen-dictionaries.install
@@ -0,0 +1 @@
+usr/share/pyphen/dictionaries/
diff --git a/debian/python-pyphen.install b/debian/python-pyphen.install
new file mode 100644
index 0000000..0105c59
--- /dev/null
+++ b/debian/python-pyphen.install
@@ -0,0 +1 @@
+usr/lib/python2.*/
diff --git a/debian/python-pyphen.postinst.debhelper b/debian/python-pyphen.postinst.debhelper
new file mode 100644
index 0000000..8e49ac8
--- /dev/null
+++ b/debian/python-pyphen.postinst.debhelper
@@ -0,0 +1,7 @@
+
+# Automatically added by dh_python2:
+if which pycompile >/dev/null 2>&1; then
+ pycompile -p python-pyphen
+fi
+
+# End automatically added section
diff --git a/debian/python-pyphen.prerm.debhelper b/debian/python-pyphen.prerm.debhelper
new file mode 100644
index 0000000..59799eb
--- /dev/null
+++ b/debian/python-pyphen.prerm.debhelper
@@ -0,0 +1,12 @@
+
+# Automatically added by dh_python2:
+if which pyclean >/dev/null 2>&1; then
+ pyclean -p python-pyphen
+else
+ dpkg -L python-pyphen | grep \.py$ | while read file
+ do
+ rm -f "${file}"[co] >/dev/null
+ done
+fi
+
+# End automatically added section
diff --git a/debian/python3-pyphen.install b/debian/python3-pyphen.install
new file mode 100644
index 0000000..eae3930
--- /dev/null
+++ b/debian/python3-pyphen.install
@@ -0,0 +1 @@
+usr/lib/python3/
diff --git a/debian/python3-pyphen.postinst.debhelper b/debian/python3-pyphen.postinst.debhelper
new file mode 100644
index 0000000..9fc1727
--- /dev/null
+++ b/debian/python3-pyphen.postinst.debhelper
@@ -0,0 +1,7 @@
+
+# Automatically added by dhpython:
+if which py3compile >/dev/null 2>&1; then
+ py3compile -p python3-pyphen -V 3.1-
+fi
+
+# End automatically added section
diff --git a/debian/python3-pyphen.prerm.debhelper b/debian/python3-pyphen.prerm.debhelper
new file mode 100644
index 0000000..209308b
--- /dev/null
+++ b/debian/python3-pyphen.prerm.debhelper
@@ -0,0 +1,10 @@
+
+# Automatically added by dhpython:
+if which py3clean >/dev/null 2>&1; then
+ py3clean -p python3-pyphen
+else
+ dpkg -L python3-pyphen | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
+ find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
+fi
+
+# End automatically added section
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c314226
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@ --with python2,python3
+
+override_dh_auto_build:
+ set -ex; for python in $$(py3versions -r); do \
+ $$python setup.py build; \
+ done
+ dh_auto_build
+
+override_dh_auto_install:
+ set -ex; for python in $$(py3versions -r); do \
+ $$python setup.py install --root=$$(pwd)/debian/tmp \
+ --install-layout=deb; \
+ done
+ dh_auto_install
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -Rf build/ *.egg-info/
+
+get-orig-source:
+ uscan --noconf --verbose --rename --force-download \
+ --download-current-version
+
+unpack-orig-source: get-orig-source
+ # Remove currently unpacked source.
+ for f in * .[!.] .??*; do \
+ if [ -e $${f} ] && [ $${f} != debian ] && \
+ [ $${f} != .gitignore ]; then \
+ rm -Rf $${f}; \
+ fi; \
+ done
+ # Unpack source archive.
+ set -e; \
+ source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \
+ version=$$(dpkg-parsechangelog | \
+ sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \
+ tar -xzf ../$${source}_$${version}.orig.tar.gz
+ # Find directory containing unpacked source files. Move source files
+ # into the top-level directory.
+ set -e; \
+ for f in */ .[!.]/ .??*/; do \
+ if [ -d $${f} ] && [ $${f} != debian ]; then \
+ for ff in $${f}/* $${f}/.[!.] $${f}/.??*; do \
+ if [ -e $${ff} ]; then \
+ mv $${ff} .; \
+ fi; \
+ done; \
+ rmdir $${f}/; \
+ fi; \
+ done
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d676445
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+https://pypi.python.org/packages/source/P/Pyphen/Pyphen-(.*)\.tar\.gz