Skip to content
Snippets Groups Projects
Commit 57e1537f authored by David Prévot's avatar David Prévot
Browse files

Initial packaging

parent 2edbdde0
No related branches found
No related tags found
No related merge requests found
php-doctrine-cache (1.3.0-1) unstable; urgency=low
* Initial release
-- David Prévot <taffit@debian.org> Thu, 29 May 2014 17:59:29 -0400
9
Source: php-doctrine-cache
Section: php
Priority: optional
Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
Uploaders: ownCloud for Debian maintainers <pkg-owncloud-maintainers@lists.alioth.debian.org>,
David Prévot <taffit@debian.org>
Build-Depends: debhelper (>= 9),
php-symfony-classloader,
phpunit,
pkg-php-tools (>= 1.7~)
Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/pkg-php/php-doctrine-cache.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-doctrine-cache.git
Homepage: http://www.doctrine-project.org/
XS-Testsuite: autopkgtest
Package: php-doctrine-cache
Architecture: all
Depends: ${misc:Depends}, ${phpcomposer:Debian-require}
Suggests: ${phpcomposer:Debian-suggest}
Replaces: php-doctrine-common (<< 2.4), ${phpcomposer:Debian-replace}
Breaks: php-doctrine-common (<< 2.4), ${phpcomposer:Debian-replace}
Provides: ${phpcomposer:Debian-provide}
Description: cache library - Doctrine component
${phpcomposer:description}
.
The Doctrine Project provides several libraries primarily focused on
database storage and object mapping.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Doctrine Cache
Source: https://github.com/doctrine/cache
Upstream-Contact: Jonathan H. Wage <jonwage@gmail.com>
Files: *
Copyright: 2006-2012, Doctrine Project
License: Expat
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
lib/* usr/share/php
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 29 May 2014 17:25:11 -0400
Subject: Use ClassLoader from Symfony instead of autoload
Work around the lack of proper autoload.php from composer by using the
ClassLoader element from Symfony.
http://symfony.com/doc/current/components/class_loader/class_loader.html
Forwarded: not-needed
---
tests/Doctrine/Tests/TestInit.php | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/tests/Doctrine/Tests/TestInit.php b/tests/Doctrine/Tests/TestInit.php
index 5fc09af..1264336 100644
--- a/tests/Doctrine/Tests/TestInit.php
+++ b/tests/Doctrine/Tests/TestInit.php
@@ -6,16 +6,12 @@ namespace Doctrine\Tests;
error_reporting(E_ALL | E_STRICT);
-if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
- // dependencies were installed via composer - this is the main project
- $classLoader = require __DIR__ . '/../../../vendor/autoload.php';
-} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
- // installed as a dependency in `vendor`
- $classLoader = require __DIR__ . '/../../../../../autoload.php';
-} else {
- throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
-}
-
-/* @var $classLoader \Composer\Autoload\ClassLoader */
-$classLoader->add('Doctrine\\Tests\\', __DIR__ . '/../../');
-unset($classLoader);
+require_once 'Symfony/Component/ClassLoader/ClassLoader.php';
+use Symfony\Component\ClassLoader\ClassLoader;
+$loader = new ClassLoader();
+//$loader->setUseIncludePath(true);
+$loader->register();
+$loader->addPrefixes(array(
+ 'Doctrine' => __DIR__.'/../../../lib',
+ 'Doctrine\\Tests' => __DIR__.'/../../',
+));
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 29 May 2014 17:25:57 -0400
Subject: Use installed class for DEP-8 tests
Gbp: Topic DEP-8
---
tests/Doctrine/Tests/TestInit.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/Doctrine/Tests/TestInit.php b/tests/Doctrine/Tests/TestInit.php
index 1264336..aa9af08 100644
--- a/tests/Doctrine/Tests/TestInit.php
+++ b/tests/Doctrine/Tests/TestInit.php
@@ -9,9 +9,8 @@ error_reporting(E_ALL | E_STRICT);
require_once 'Symfony/Component/ClassLoader/ClassLoader.php';
use Symfony\Component\ClassLoader\ClassLoader;
$loader = new ClassLoader();
-//$loader->setUseIncludePath(true);
+$loader->setUseIncludePath(true);
$loader->register();
$loader->addPrefixes(array(
- 'Doctrine' => __DIR__.'/../../../lib',
'Doctrine\\Tests' => __DIR__.'/../../',
));
0001-Use-ClassLoader-from-Symfony-instead-of-autoload.patch
#!/usr/bin/make -f
%:
dh $@ --with phpcomposer
override_dh_auto_clean override_dh_auto_build:
override_dh_auto_test:
phpunit
dh_auto_test
override_dh_installchangelogs:
dh_installchangelogs README.md
get-orig-source:
uscan --force --verbose --rename
3.0 (quilt)
Tests: phpunit
Restrictions: rw-build-tree
Depends: @, patch, php-symfony-classloader, phpunit
#! /bin/sh
patch -p1 < debian/patches/DEP-8/Use-installed-class-for-DEP-8-tests.patch
phpunit
exit=$?
patch -Rp1 < debian/patches/DEP-8/Use-installed-class-for-DEP-8-tests.patch
exit $exit
version=3
options=uversionmangle=s/-ALPHA/~alpha/;s/-BETA/~beta/;s/-RC/~rc/ \
https://github.com/doctrine/cache/releases .*/archive/v?([\d\.]+-?\w*)\.tar\.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment