Skip to content

Commit 104cd1e

Browse files
committed
Use Onion to build PEAR packages of Predis.
Since Pearhub is currently broken (unfortunately the project does not seem to be actively mantained anymore) but we still want to have PEAR packages for our library, we need to automate the creation of a package.xml definition file to build the actual packages that will be uploaded on a self-hosted PEAR channel. Onion, while still in its alpha stage right now, works perfectly fine for our needs and its own package.ini file looks simple enough to edit and maintain. See http://c9s.github.com/Onion for more details about Onion and thank @c9s for making it available.
1 parent 4b9ab0b commit 104cd1e

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
*.tgz
2+
*.phar
13
phpunit.xml
4+
package.xml
25
experiments/

‎package.ini‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
; This file is meant to be used with Onion http://c9s.github.com/Onion/
2+
; In order to be able to build a PEAR package of Predis, open a new terminal
3+
; session and follow these two easy steps:
4+
;
5+
; $ wget https://github.com/c9s/Onion/raw/master/onion.phar
6+
; $ /usr/bin/env php onion.phar build
7+
;
8+
9+
[package]
10+
name = "Predis"
11+
desc = "Flexible and feature-complete PHP client library for Redis"
12+
homepage = "http://github.com/nrk/predis"
13+
license = "MIT"
14+
version = "0.7.1"
15+
stability = "beta"
16+
channel = "pear.nrk.io"
17+
18+
author = "Daniele Alessandri \"nrk\" <suppakilla@gmail.com>"
19+
20+
[required]
21+
php = ">= 5.3.2"
22+
pearinstaller = "1.4.1"
23+
24+
[roles]
25+
*.md = doc
26+
lib = php
27+
28+
[optional phpiredis]
29+
hint = "Add support for faster protocol handling with phpiredis"
30+
extensions[] = socket
31+
extensions[] = phpiredis
32+
33+
[optional webdis]
34+
hint = "Add support for Webdis"
35+
extensions[] = curl
36+
extensions[] = phpiredis

0 commit comments

Comments
 (0)