1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
# $Id: packages,v 1.1 2004/11/05 08:41:21 dexter Exp $
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
Source: php-propel
Section: interpreters
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://propel.phpdb.org/wiki/index.php?node=2>
Home-Page: <URL:http://propel.phpdb.org/>
Description: PHP5 object persistence layer based on Apache Torque
Propel is an object persistence layer for PHP5 based on Apache Torque. In
practical terms, Propel allows you to use objects instead of SQL to read
and write rows in your database tables. Propel is composed of two tools:
(1) a generator that creates SQL definition files (DDL) and PHP classes
for your datamodel, and (2) a runtime engine that transparently handles
object persistence and retrieval. Propel makes it easy to customize
generated classes and, by using XML for the datamodel definition,
can be easily integrated with an existing application framework.
Copyright: LGPL
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information please see
* <http://propel.phpdb.org>.
Major-Changes:
[001] Convert relative path to the absolute path, fix propel-gen shell script
Build-Depends-Indep: phing
Patches: patches/*.diff
Build: sh
version=${VERSION%-*}
.
rm -rf generator/build runtime/build || true
.
( cd generator; phing -Dversion=$version -f pear/build-pear-package.xml build pear-package ) || false
( cd runtime; phing -Dversion=$version -f build-pear-package.xml build pear-package ) || false
.
for package in generator runtime; do
(
cd $package/build
cd */
ln -s ../package.xml .
pear \
-v \
-c $(pwd)/.pearrc \
-d bin_dir=/usr/bin \
-d doc_dir=/usr/share/php/docs \
-d php_dir=/usr/share/php \
-d data_dir=/usr/share/php/data \
-d php_bin=/usr/bin/php \
-d test_dir=/usr/share/php/tests \
-d include_path=/usr/share/php \
install --installroot=$(pwd)/tmp --force --nodeps package.xml
) || false
done
Clean: sh
rm -rf generator/build runtime/build || true
Package: php-propel-generator
Architecture: all
Depends: php5-cli (>= 5.0.0)
Depends: phing (>= 2.0.0)
Description: PHP5 object persistence layer based on Apache Torque - generator
This package contains propel generator classes.
Install: sh
mkdir -p $ROOT/usr/share/doc/$PACKAGE
cp -a generator/build/*/tmp/* $ROOT
test -d $ROOT/usr/share/php/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs
test -d $ROOT/usr/share/php/docs/*/docs && cp -a $ROOT/usr/share/php/docs/*/docs $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/docs/*/docs
test -d $ROOT/usr/share/php/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs/* && cp -a $ROOT/usr/share/php/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs && cp -a $ROOT/usr/share/php/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs
test -d $ROOT/usr/share/php/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests
test -d $ROOT/usr/share/php/tests/*/tests && cp -a $ROOT/usr/share/php/tests/*/tests $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/tests/*/tests
test -d $ROOT/usr/share/php/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests/* && cp -a $ROOT/usr/share/php/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests && cp -a $ROOT/usr/share/php/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests
cp -a generator/build/package.xml $ROOT/usr/share/doc/$PACKAGE
find $ROOT -name '.*' -print0 | xargs -0 -r rm -rf
yada copy -doc -as user_guide docs/user_guide/book
Package: php-propel-runtime
Architecture: all
Depends: php5-common (>= 5.0.0)
Depends: php-creole (>= 1.0.0)
Description: PHP5 object persistence layer based on Apache Torque - runtime
This package contains propel runtime classes.
Install: sh
mkdir -p $ROOT/usr/share/doc/$PACKAGE
cp -a runtime/build/*/tmp/* $ROOT
test -d $ROOT/usr/share/php/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs
test -d $ROOT/usr/share/php/docs/*/docs && cp -a $ROOT/usr/share/php/docs/*/docs $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/docs/*/docs
test -d $ROOT/usr/share/php/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs/* && cp -a $ROOT/usr/share/php/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs && cp -a $ROOT/usr/share/php/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs
test -d $ROOT/usr/share/php/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests
test -d $ROOT/usr/share/php/tests/*/tests && cp -a $ROOT/usr/share/php/tests/*/tests $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/tests/*/tests
test -d $ROOT/usr/share/php/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests/* && cp -a $ROOT/usr/share/php/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests && cp -a $ROOT/usr/share/php/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests
cp -a runtime/build/package.xml $ROOT/usr/share/doc/$PACKAGE
find $ROOT -name '.*' -print0 | xargs -0 -r rm -rf
|