debian/0000755000000000000000000000000012312066024007162 5ustar debian/compat0000644000000000000000000000000212173334522010366 0ustar 7 debian/preinst0000644000000000000000000000102312312065752010574 0ustar #!/bin/sh set -e EGG=/usr/lib/python2.7/dist-packages/gyp-0.1.egg-info if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.1~svn1729-3ubuntu1; then # remove symlink from the old package, it gets replaced with a directory # in the new package but dpkg will not handle this automatically, it # needs manual help, see https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_Will_dpkg_replace_a_symlink_with_a_directory_or_vice_versa.3F # bugreport against gyp: LP: #1246730 if [ -L $EGG ]; then rm -f $EGG fi fi debian/control0000644000000000000000000000157612220336705010602 0ustar Source: gyp Section: python Priority: optional Maintainer: Debian Chromium Maintainers Uploaders: Giuseppe Iuculano , Jérémy Lal Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-setuptools, asciidoc, xsltproc, docbook-xsl, docbook-xml Standards-Version: 3.9.4 Homepage: http://code.google.com/p/gyp/ Package: gyp Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-pkg-resources Description: Cross-platform build script generator GYP (Generate Your Projects) is a tool to generate native Visual Studio, Xcode, SCons and make build files from a description of a project in a simple JSON-inspired format. Its syntax is a universal cross-platform build representation that still allows sufficient per-platform flexibility to accommodate irreconcilable differences. debian/manpages0000644000000000000000000000001412173334522010701 0ustar debian/gyp.1debian/changelog0000644000000000000000000001073212312064323011037 0ustar gyp (0.1~svn1729-3ubuntu1) trusty; urgency=low * debian/preinst: - help dpkg when /usr/lib/python2.7/dist-packages/gyp-0.1.egg-info is changed from a symlink to a directory (LP: #1246730) -- Michael Vogt Tue, 18 Mar 2014 16:34:26 +0100 gyp (0.1~svn1729-3) unstable; urgency=low * Build-Depends on python-setuptools. (Closes: #724516) -- Jérémy Lal Tue, 24 Sep 2013 18:30:37 +0200 gyp (0.1~svn1729-2) unstable; urgency=low [ Nobuhiro Iwamatsu ] * Add python-pkg-resources to Depends. (Closes: #723616) -- Jérémy Lal Wed, 18 Sep 2013 01:17:18 +0200 gyp (0.1~svn1729-1) unstable; urgency=low * Upstream update svn revision 1729. (Closes: #722678) * 1002 patch: remove unneeded import of ez_setup * Clean wether patch is applied or not -- Jérémy Lal Tue, 17 Sep 2013 01:55:49 +0200 gyp (0.1~svn1712-1) unstable; urgency=low * Upstream update svn revision 1712. (Closes: #721795) * Update copyrights. -- Jérémy Lal Wed, 04 Sep 2013 10:04:51 +0200 gyp (0.1~svn1654-1) unstable; urgency=low * Upstream update svn revision 1654. * 2001_kfreebsd_flock.patch: gyp thinks the flavor is freebsd, and in turn uses lockf where it should use flock. Revert that. -- Jérémy Lal Tue, 23 Jul 2013 01:08:00 +0200 gyp (0.1~svn1625-1) experimental; urgency=low * Imported Upstream version 0.1~svn1625. * Standards-Version: 3.9.4 compliant. * Rewrite debian/rules get-orig-source and get-current-source with simpler code. Remove broken FOLLOW_CHROMIUM code. * Copyright: convert to 1.0 format, extend copyright years. * Update short and long description. (Thanks to Jonathan Nieder). * Add a gyp(1) man page. (Closes: #585825, thanks to Jonathan Nieder), Build-Depends on asciidoc, xsltproc, docbook-xsl, docbook-xml. * Patch make generator to append CPPFLAGS to CXXFLAGS. (Closes: #689754). * Migrate to dh_python2. Build-Depends python (>= 2.6.6-3~). -- Jérémy Lal Fri, 03 May 2013 01:34:48 +0200 gyp (0.1~svn1395-1) unstable; urgency=low * [6f75d51] Imported Upstream version 0.1~svn1395 -- Giuseppe Iuculano Mon, 28 May 2012 14:44:34 +0200 gyp (0.1~svn1119-1) unstable; urgency=low * [af0ca43] Imported Upstream version 0.1~svn1119 * [9422432] removed kfreebsd.patch, it was merged upstream -- Giuseppe Iuculano Fri, 30 Dec 2011 10:57:20 +0100 gyp (0.1~svn1031-1) unstable; urgency=low * [aa89cb3] Imported Upstream version 0.1~svn1031 * [2ed8fca] Adding debian/pyversions. Thanks to Daniel Baumann (Closes: #637293) -- Giuseppe Iuculano Wed, 26 Oct 2011 16:15:58 +0200 gyp (0.1~svn971-1) unstable; urgency=low * [f945132] Imported Upstream version 0.1~svn971 -- Giuseppe Iuculano Sat, 23 Jul 2011 19:30:04 +0200 gyp (0.1~svn917-1) unstable; urgency=low * [ee6aecb] Imported Upstream version 0.1~svn917 -- Giuseppe Iuculano Sun, 15 May 2011 12:28:22 +0200 gyp (0.1~svn824-2) unstable; urgency=low * [bd0fbdd] Fall back to 'make' for everything else than win32, cygwin or darwin (Closes: #588856) - thanks to Jakub Wilk -- Giuseppe Iuculano Wed, 04 Aug 2010 16:19:09 +0200 gyp (0.1~svn824-1) unstable; urgency=low * [b3d905b] Imported Upstream version 0.1~svn824, needed to package moac * [b7a8093] Set Debian Chromium Maintainers in Maintainer field, and set me as Uploader -- Giuseppe Iuculano Fri, 14 May 2010 09:36:12 +0200 gyp (0.1~svn805-1) unstable; urgency=low * Initial Debian release * [94355c9] Set me as maintainer * [902e34c] bump Standards-Version * [8d17b7a] Updated copyright * [0fd29c1] Switch to dh7 * [720eb3d] Switch to dpkg-source 3.0 (quilt) format -- Giuseppe Iuculano Wed, 21 Apr 2010 22:19:59 +0200 gyp (0.1~svn805-0ubuntu1) lucid; urgency=low * New upstream snapshot, needed to prevent a build failure in chromium while parsing WebCore.gyp -- Fabien Tassin Sat, 27 Mar 2010 04:00:02 +0100 gyp (0.1~svn785-0ubuntu1) lucid; urgency=low * New upstream snapshot, needed to support --no-circular-check -- Fabien Tassin Wed, 17 Feb 2010 22:00:38 +0100 gyp (0.1~svn770-0ubuntu1) lucid; urgency=low * Initial release. (LP: #504425) -- Fabien Tassin Thu, 07 Jan 2010 20:50:17 +0100 debian/gyp.txt0000644000000000000000000000743012173334522010534 0ustar gyp(1) ====== NAME ---- gyp - cross-platform makefile generator for Chromium SYNOPSIS -------- 'gyp' [options] [build_file...] DESCRIPTION ----------- Uses the specified build files to generate build scripts or project files in the current platform's native format. If no build file is specified, all files in the current directory with a `.gyp` suffix are used. OPTIONS ------- -D=:: Provide a default value for the given variable. This supplements settings from the 'GYP_DEFINES' environment variable, which should be a space-separated list of = pairs. -f[(,)...]:: --format=[(,)...]:: Generate output in the formats listed. Valid formats include `make` (GNU makefile), `xcode` (Xcode project file), `msvs` (Visual Studio project file), `scons` (SCons rule set), and `gypd` ('gyp' input, for debugging). + Defaults to the value of the 'GYP_GENERATORS' environment variable, which should be a comma-separated list of formats, or the platform's native format if unset ('xcode' for Mac OS X, 'msvs' for Windows, including Cygwin, 'make' for other Unix). -I:: --include=:: Implicitly include the contents of the '' file in all loaded `.gyp` files. --depth=:: For Chromium, the gyp "depth" variable should always be a relative path to Chromium's top-level `src` directory. This option allows one to specify a path the DEPTH variable should be set relative to. + Defaults to the first directory named `src` found as an ancestor of one of the build files passed on the command line. -d:: --debug=:: Turn on debugging output. Valid debugging modes include "general" to list options used, "variables" to trace variable expansion, and "includes" to trace build file include directives. -S:: --suffix=:: Insert the specified string in the names of generated files before the standard extension. For example, with the 'make' backend and a suffix of "`.foo`", 'gyp' will write the main makefile to `Makefile.foo` and target-specific snippets to `target.foo.mk`. -G=:: Set a "generator flag", which is an option specific to the particular output format. All generator flags have names beginning with the name of the output format. This supplements the 'GYP_GENERATOR_FLAGS' environment variable, which should be a space-separated list of = pairs. --generator-output=:: Write the generated build files under the directory and adjust paths accordingly. This allows building in a separate directory from the source files. + This overrides the 'GYP_GENERATOR_OUTPUT' environment variable. --ignore-environment:: Do not read options from environment variables. --check:: Take extra time to verify the syntax of each 'build_file'. --parallel:: Use multiprocessing for speed (experimental). --toplevel-dir=:: Directory to use as the root of the source tree. --build=:: Configuration for build after project generation. --no-circular-check:: Disable the check for circular relationships between `.gyp` files. These relationships should not exist, but they've only been observed to be harmful with the Xcode output format. Chromium's `.gyp` files currently have some circular relationships on non-Mac platforms, so this option allows the strict behavior to be used on Macs and the lenient behavior to be used elsewhere. + This option is likely to be removed once all circular relationships in Chromium are eliminated. ENVIRONMENT ----------- GYP_DEFINES:: GYP_GENERATORS:: GYP_GENERATOR_FLAGS:: GYP_GENERATOR_OUTPUT:: See the `-D`, `--format`, `-G`, and `--generator-output` options. FILES ----- ~/.gyp/include.gypi:: Implicitly included before anything else in every `.gyp` file. SEE ALSO -------- *qmake*(1), *cmake*(1) debian/patches/0000755000000000000000000000000012214702254010614 5ustar debian/patches/1002_no_ez_setup.patch0000644000000000000000000000036712214675140014642 0ustar --- a/setup.py +++ b/setup.py @@ -4,8 +4,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -from ez_setup import use_setuptools -use_setuptools() from setuptools import setup setup( debian/patches/2001_kfreebsd_flock.patch0000644000000000000000000000127312214702254015245 0ustar Description: kfreebsd supports flock, not lockf Forwarded: not-needed, not worth it. Author: Jérémy Lal Last-Update: 2013-07-20 --- a/pylib/gyp/generator/make.py +++ b/pylib/gyp/generator/make.py @@ -1990,11 +1990,11 @@ 'flock_index': 2, 'extra_commands': SHARED_HEADER_SUN_COMMANDS, }) - elif flavor == 'freebsd': + # elif flavor == 'freebsd': # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific. - header_params.update({ - 'flock': 'lockf', - }) + # header_params.update({ + # 'flock': 'lockf', + # }) header_params.update({ 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'), debian/patches/1001_append_cppflags_to_cxxflags.patch0000644000000000000000000000110012214702252020013 0ustar Description: append CPPFLAGS to CXXFLAGS. Because gyp totally ignores CPPFLAGS. Bug: https://code.google.com/p/gyp/issues/detail?id=338 Bug-Debian: http://bugs.debian.org/689754 Author: Jérémy Lal Last-Update: 2013-05-03 --- a/pylib/gyp/generator/make.py +++ b/pylib/gyp/generator/make.py @@ -249,7 +249,7 @@ CC.target ?= %(CC.target)s CFLAGS.target ?= $(CFLAGS) CXX.target ?= %(CXX.target)s -CXXFLAGS.target ?= $(CXXFLAGS) +CXXFLAGS.target ?= $(CXXFLAGS) $(CPPFLAGS) LINK.target ?= %(LINK.target)s LDFLAGS.target ?= $(LDFLAGS) AR.target ?= $(AR) debian/patches/series0000644000000000000000000000013012214675123012027 0ustar 1001_append_cppflags_to_cxxflags.patch 2001_kfreebsd_flock.patch 1002_no_ez_setup.patch debian/source/0000755000000000000000000000000012173334522010470 5ustar debian/source/format0000644000000000000000000000001412173334522011676 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000352512211564547011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://gyp.googlecode.com/svn/trunk Files: * Copyright: 2009-2013 Google Inc. All rights reserved. 2011-2013 The Chromium Authors. All rights reserved. 2013 Yandex LLC License: BSD-3-clause~Google Files: debian/* Copyright: 2009 Fabien Tassin , 2010 Giuseppe Iuculano License: BSD-3-clause~Google License: BSD-3-clause~Google 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. debian/rules0000755000000000000000000000304412215715112010244 0ustar #!/usr/bin/make -f ### Tarball (get-orig-source & get-current-source) PACKAGE := gyp PACKAGE_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') PACKAGE_VERSION_ROOT := $(shell echo '$(PACKAGE_VERSION)' | cut -d~ -f1) PACKAGE_VERSION_SVN := $(shell echo '$(PACKAGE_VERSION)' | cut -d~ -f2 | sed 's/svn//') SVN_URL := http://gyp.googlecode.com/svn/trunk TMP_DIR := get-orig-source-$(shell echo $$$$) .PHONY: get-orig-source get-current-source pack-source: rm -rf $(TMP_DIR) $(TARBALL) mkdir $(TMP_DIR) svn export -r $(SVN_REV) $(SVN_URL) $(TMP_DIR)/$(PACKAGE)-$(SRC_VERSION).orig GZIP='--best --no-name' tar czf $(TARBALL) -C $(TMP_DIR) $(PACKAGE)-$(SRC_VERSION).orig rm -rf $(TMP_DIR) echo " "$(TARBALL)" created; move it to the right destination to build the package" get-orig-source: SVN_REV = $(shell LANG=C svn info $(SVN_URL) | grep ^Revision: | cut -d' ' -f2) get-orig-source: SRC_VERSION = $(PACKAGE_VERSION_ROOT)~svn$(SVN_REV) get-orig-source: TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz get-orig-source: pack-source get-current-source: SVN_REV = $(PACKAGE_VERSION_SVN) get-current-source: SRC_VERSION = $(PACKAGE_VERSION_ROOT)~svn$(SVN_REV) get-current-source: TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz get-current-source: pack-source ### %: dh $@ --with python2 override_dh_auto_build: dh_auto_build a2x -L --doctype manpage --format manpage $(CURDIR)/debian/gyp.txt > $(CURDIR)/debian/gyp.1 override_dh_auto_clean: -dh_auto_clean rm -rf build pylib/gyp.egg-info rm -f debian/gyp.1