Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/175194

Change subject: Add Debian packaging.
......................................................................

Add Debian packaging.

Change-Id: I27dcce8f49074e504b2ae323bf9458fc0996a94a
---
A debian/changelog
A debian/compat
A debian/control
A debian/copyright
A debian/docs
A debian/hhvm-tidy.substvars
A debian/rules
A debian/source/format
8 files changed, 158 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/php/tidy 
refs/changes/94/175194/1

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..94c1a68
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+hhvm-tidy (0.1-1) trusty-wikimedia; urgency=medium
+
+  * Initial release.
+
+ -- Ori Livneh <o...@wikimedia.org>  Sat, 22 Nov 2014 03:38:29 +0000
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..a35907a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: hhvm-tidy
+Section: web
+Priority: optional
+Maintainer: Ori Livneh <o...@wikimedia.org>
+Build-Depends: debhelper (>= 9), hhvm-dev, cmake, libtidy-dev
+Standards-Version: 3.9.5
+
+Package: hhvm-tidy
+Architecture: any
+Depends: ${hhvm:ApiVersion}, libtidy-0.99-0
+Description: tidy module for HHVM
+ This is a HHVM extension based on Libtidy (http://tidy.sf.net). It allows
+ a PHP developer to clean, repair, and traverse HTML, XHTML and XML documents.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..21d5176
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,98 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: hhvm-tidy
+Source: https://github.com/wikimedia/mediawiki-php-tidy
+
+
+Files: *
+Copyright: 1999 - 2014 The PHP Group
+           2014 Tim Starling
+License: PHP
+ --------------------------------------------------------------------
+                   The PHP License, version 3.01
+ Copyright (c) 1999 - 2010 The PHP Group. All rights reserved.
+ --------------------------------------------------------------------
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, is permitted provided that the following conditions
+ are met:
+ .
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+ .
+   2. 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.
+ .
+   3. The name "PHP" must not be used to endorse or promote products
+      derived from this software without prior written permission. For
+      written permission, please contact gr...@php.net.
+ .
+   4. Products derived from this software may not be called "PHP", nor
+      may "PHP" appear in their name, without prior written permission
+      from gr...@php.net.  You may indicate that your software works in
+      conjunction with PHP by saying "Foo for PHP" instead of calling
+      it "PHP Foo" or "phpfoo"
+ .
+   5. The PHP Group may publish revised and/or new versions of the
+      license from time to time. Each version will be given a
+      distinguishing version number.
+      Once covered code has been published under a particular version
+      of the license, you may always continue to use it under the terms
+      of that version. You may also choose to use such covered code
+      under the terms of any subsequent version of the license
+      published by the PHP Group. No one other than the PHP Group has
+      the right to modify the terms applicable to covered code created
+      under this License.
+ .
+   6. Redistributions of any form whatsoever must retain the following
+      acknowledgment:
+      "This product includes PHP software, freely available from
+      <http://www.php.net/software/>".
+ .
+ THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ ANY EXPRESSED 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 PHP
+ DEVELOPMENT TEAM OR ITS 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 software consists of voluntary contributions made by many
+ individuals on behalf of the PHP Group.
+ .
+ The PHP Group can be contacted via Email at gr...@php.net.
+ .
+ For more information on the PHP Group and the PHP project,
+ please see <http://www.php.net>.
+ .
+ PHP includes the Zend Engine, freely available at
+ <http://www.zend.com>.
+Files: debian/*
+Copyright: 2014 Wikimedia Foundation, Inc.
+License: GPL-2+
+
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package 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 General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
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/hhvm-tidy.substvars b/debian/hhvm-tidy.substvars
new file mode 100644
index 0000000..46f4c87
--- /dev/null
+++ b/debian/hhvm-tidy.substvars
@@ -0,0 +1,4 @@
+misc:Pre-Depends=multiarch-support
+shlibs:Depends=libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), 
libtidy-0.99-0
+hhvm:ApiVersion=hhvm-api-20140829
+misc:Depends=
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7b1ca9d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+%:
+       dh $@
+
+override_dh_auto_configure:
+       mkdir -p debian/build-hhvm
+       tar -cf - --exclude=debian/build-hhvm --exclude=.pc . \
+               | tar -xf - -C debian/build-hhvm
+       cd debian/build-hhvm && /usr/bin/hphpize
+       # workaround "cmake .." bug in HHVM's CMake extension code
+       cd debian/build-hhvm && cmake . \
+               -DCMAKE_INSTALL_PREFIX=/usr \
+               -DCMAKE_VERBOSE_MAKEFILE=ON \
+               -DCMAKE_BUILD_TYPE=None
+       cd debian/build-hhvm && dh_auto_configure
+
+override_dh_auto_build:
+       cd debian/build-hhvm && dh_auto_build
+
+override_dh_auto_test:
+
+override_dh_auto_install:
+       DESTDIR=$(CURDIR)/debian/hhvm-tidy make -C debian/build-hhvm install
+
+override_dh_gencontrol:
+       # HHVM does *not* ensure abi compatibility.
+       echo "hhvm:ApiVersion=hhvm-api-$(shell /usr/bin/hhvm --version | sed 
-ne 's/^Extension API:\ //p')" >> debian/hhvm-tidy.substvars
+       dh_gencontrol
+
+override_dh_auto_clean:
+       -rm -r debian/build-hhvm
+       dh_auto_clean
+
+.PHONY: override_dh_auto_configure override_dh_auto_build 
override_dh_auto_test override_dh_auto_install override_dh_gencontrol
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)

-- 
To view, visit https://gerrit.wikimedia.org/r/175194
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27dcce8f49074e504b2ae323bf9458fc0996a94a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/php/tidy
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to