This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mon Jan 4 18:46:29 2010 Tim 'mithro' Ansell <[email protected]>
* python-gflags: version 1.3 * Fork from the C++ package (google-gflags 1.3) * Add debian packaging
- Loading branch information
csilvers
committed
Jan 5, 2010
0 parents
commit aa789bc
Showing
18 changed files
with
5,484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Copyright (c) 2006, Google Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Mon Jan 4 18:46:29 2010 Tim 'mithro' Ansell <[email protected]> | ||
|
||
* python-gflags: version 1.3 | ||
* Fork from the C++ package (google-gflags 1.3) | ||
* Add debian packaging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This repository contains a python implementation of the Google commandline | ||
flags module. | ||
|
||
GFlags defines a *distributed* command line system, replacing systems like | ||
getopt(), optparse and manual argument processing. Rather than an application | ||
having to define all flags in or near main(), each python module defines flags | ||
that are useful to it. When one python module imports another, it gains | ||
access to the other's flags. | ||
|
||
It includes the ability to define flag types (boolean, float, interger, list), | ||
autogeneration of help (in both human and machine readable format) and reading | ||
arguments from a file. It also includes the ability to automatically generate | ||
man pages from the help flags. | ||
|
||
Documentation for implementation is at the top of gflags.py file. | ||
|
||
To install the python module, run | ||
python ./setup.py install | ||
|
||
When you install this library, you also get a helper application, | ||
gflags2man.py, installed into /usr/local/bin. You can run gflags2man.py to | ||
create an instant man page, with all the commandline flags and their docs, for | ||
any C++ or python program you've written using the gflags library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The list of files here isn't complete. For a step-by-step guide on | ||
how to set this package up correctly, check out | ||
http://www.debian.org/doc/maint-guide/ | ||
|
||
Most of the files that are in this directory are boilerplate. | ||
However, you may need to change the list of binary-arch dependencies | ||
in 'rules'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
python-gflags (1.3-1) unstable; urgency=low | ||
|
||
* Initial release. | ||
* Packaging based on gflags 1.3 | ||
|
||
-- Tim 'mithro' Ansell <[email protected]> Mon, 04 Jan 2010 18:46:10 -0800 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Source: python-gflags | ||
Section: python | ||
XS-Python-Version: all | ||
Priority: optional | ||
Maintainer: Tim 'mithro' Ansell <[email protected]> | ||
Build-Depends-Indep: python-central (>= 0.5.6), python-setuptools (>= 0.6b3-1), python-all | ||
Build-Depends: debhelper (>= 5.0.38) | ||
Standards-Version: 3.7.2 | ||
|
||
Package: python-gflags | ||
Architecture: all | ||
Depends: ${python:Depends} | ||
XB-Python-Version: ${python:Versions} | ||
Description: A Python implementation of the Google commandline flags module | ||
. | ||
GFlags defines a *distributed* command line system, replacing systems like | ||
getopt(), optparse and manual argument processing. Rather than an application | ||
having to define all flags in or near main(), each Python module defines flags | ||
that are useful to it. When one Python module imports another, it gains | ||
access to the other's flags. | ||
. | ||
It includes the ability to define flag types (boolean, float, interger, list), | ||
autogeneration of help (in both human and machine readable format) and reading | ||
arguments from a file. It also includes the ability to automatically generate | ||
man pages from the help flags. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
This package was debianized by Tim 'mithro' Ansell <[email protected]> on | ||
Thu, 12 Nov 2009 11:25:53 +1100. | ||
|
||
It was downloaded from http://code.google.com/p/google-gflags/downloads/list | ||
|
||
Upstream Author: Google Inc. <[email protected]> | ||
Copyright: Google Inc. <[email protected]> | ||
|
||
License: | ||
|
||
Copyright (c) 2006, Google Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
The Debian packaging is (C) 2009, Tim 'mithro' Ansell <[email protected]> and | ||
is licensed under the above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
AUTHORS | ||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# GNU copyright 1997 to 1999 by Joey Hess. | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
PYTHON := /usr/bin/python | ||
#PYVER := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]') | ||
PYVERS = $(shell pyversions -vr) | ||
|
||
build: $(PYVERS:%=build-python%) | ||
touch $@ | ||
|
||
build-python%: | ||
dh_testdir | ||
python$* setup.py build | ||
touch $@ | ||
|
||
clean: | ||
dh_testdir | ||
dh_testroot | ||
rm -f build-python* | ||
rm -rf build | ||
-find . -name '*.py[co]' | xargs rm -f | ||
dh_clean | ||
|
||
install: build $(PYVERS:%=install-python%) | ||
|
||
install-python%: | ||
dh_testdir | ||
dh_testroot | ||
dh_clean -k | ||
dh_installdirs | ||
python$* setup.py install --root=$(CURDIR)/debian/python-gflags | ||
# Scripts should not have a .py on the end of them | ||
mv $(CURDIR)/debian/python-gflags/usr/bin/gflags2man.py $(CURDIR)/debian/python-gflags/usr/bin/gflags2man | ||
# Generate a man file for gflags2man | ||
mkdir -p $(CURDIR)/debian/python-gflags/usr/share/man/man1 | ||
python$* gflags2man.py --dest_dir $(CURDIR)/debian/python-gflags/usr/share/man/man1 $(CURDIR)/debian/python-gflags/usr/bin/gflags2man | ||
|
||
# Build architecture-independent files here. | ||
binary-indep: build install | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs -k ChangeLog | ||
dh_installdocs | ||
dh_pycentral | ||
dh_compress -X.py | ||
dh_fixperms | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
# Build architecture-dependent files here. | ||
binary-arch: build install | ||
# We have nothing to do by default. | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install configure |
Oops, something went wrong.