Skip to content

Commit

Permalink
phpdocumentor: added
Browse files Browse the repository at this point in the history
  • Loading branch information
conraid committed Jan 28, 2016
1 parent 81459e6 commit 3fafccd
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
69 changes: 69 additions & 0 deletions phpdocumentor/phpdocumentor.SlackBuild
@@ -0,0 +1,69 @@
#!/bin/sh
#
# Slackware build script for phpdocumentor
#
# Copyright 2015 Corrado Franco (http://conraid.net)
# All rights reserved.
#
# This program 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, with the following exception:
# the text of the GPL license may be omitted.

# This program 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. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.

# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
#
# Latest version of this SlackBuild at https://github.com/conraid/SlackBuilds

set -eu

CWD=$(pwd)

SRCNAM=phpDocumentor
PRGNAM=$(echo $SRCNAM | tr A-Z a-z)
VERSION=${VERSION:-2.8.5}
BUILD=${BUILD:-1}
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ -z ${ARCH:=""} ]; then
case "$( uname -m )" in
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi

[ "$ARCH" = "x86_64" ] && LIBDIRSUFFIX="64" || LIBDIRSUFFIX=""

rm -rf $PKG
mkdir -p $PKG

pear channel-discover pear.phpdoc.org || pear channel-update pear.phpdoc.org
pear install -P $PKG $CWD/$SRCNAM-$VERSION.tgz

# Remove channel, metadata etc...
cd $PKG/usr/lib$LIBDIRSUFFIX/php
rm -r $(ls -A | grep '^\.')

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $PKG/usr/lib$LIBDIRSUFFIX/php/$SRCNAM/{LICENSE,VERSION} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
10 changes: 10 additions & 0 deletions phpdocumentor/phpdocumentor.info
@@ -0,0 +1,10 @@
PRGNAM="phpdocumentor"
VERSION="2.8.5"
HOMEPAGE="http://www.phpdoc.org"
DOWNLOAD="https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.8.5/phpDocumentor-2.8.5.tgz"
FILENAME="phpDocumentor-2.8.5.tgz"
MD5SUM="ca79a58c74ee20fe322f911d3f611c06"
SHASUM="bb0650aafbb96c82ef00796b4224c4c27ca12fa7"
REQUIRES="graphviz"
MAINTAINER="Corrado Franco"
EMAIL="conraid (at) linux (dot) it"
19 changes: 19 additions & 0 deletions phpdocumentor/slack-desc
@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

|-----handy-ruler------------------------------------------------------|
phpdocumentor: phpdocumentor (Documentation Generator for PHP)
phpdocumentor:
phpdocumentor: phpDocumentor an application that is capable of analyzing your PHP
phpcocumentor: source code and DocBlock comments to generate a complete set of API
phpdocumentor: Documentation.
phpdocumentor:
phpdocumentor:
phpdocumentor:
phpdocumentor:
phpdocumentor:
phpdocumentor:

0 comments on commit 3fafccd

Please sign in to comment.