1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Trim header

- Drop shlib ABI version numbers from LIB_DEPENDS
- Split the php bindings into a separate ports as building was a different
  procedure anyway
- Fix buidling the php with recent php
- Drop article from COMMENT

PR:		ports/170776
Submitted by:	Rodrigo OSORIO <rodrigo@bebik.net>
Approved by:	clsung (maintainer timeout)
Feature safe:	yes
This commit is contained in:
Baptiste Daroussin 2012-12-05 17:15:36 +00:00
parent 813198670f
commit cf22090c5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308338
8 changed files with 57 additions and 36 deletions

View File

@ -369,6 +369,7 @@
SUBDIR += liblingoteach
SUBDIR += liblrdf
SUBDIR += libmrss
SUBDIR += libmrss-php
SUBDIR += libnxml
SUBDIR += libparsifal
SUBDIR += libpathan

View File

@ -0,0 +1,31 @@
# Created by: Rodrigo Osorio <rodrigo@bebik.net>
# $FreeBSD$
PORTNAME= libmrss
PORTVERSION= 0.19.2
CATEGORIES= textproc
MASTER_SITES= http://www.autistici.org/bakunin/libmrss/
PKGNAMESUFFIX= -php
MAINTAINER= rodrigo@bebik.net
COMMENT= PHP library for parsing, writing, and creating RSS
LIB_DEPENDS= mrss:${PORTSDIR}/textproc/libmrss
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
USE_PHP= yes
USE_PHPIZE= yes
USE_PHP_BUILD= yes
USE_AUTOTOOLS+= autoconf:env
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/phpmrss
PLIST_FILES= lib/php/${PHP_EXT_DIR}/mrss.so
PLIST_DIRSTRY= lib/php/${PHP_EXTDIR} \
lib/php
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libmrss-0.19.2.tar.gz) = 071416adcae5c1a9317a4a313f2deb34667e3cc2be4487fb3076528ce45b210b
SIZE (libmrss-0.19.2.tar.gz) = 375238

View File

@ -0,0 +1,11 @@
--- php.c 2008-01-25 19:32:24.000000000 +0100
+++ php.c 2012-08-20 03:10:45.000000000 +0200
@@ -58,7 +58,7 @@
return SUCCESS;
}
-static function_entry mrss_functions[] = {
+static zend_function_entry mrss_functions[] = {
PHP_FE (mrss_parse_url, NULL)
PHP_FE (mrss_parse_url_with_options, NULL)
PHP_FE (mrss_parse_file, NULL)

View File

@ -0,0 +1,4 @@
PHP bindings for the mRss library for parsing, writing and creating RSS files or
streams.
WWW: http://www2.autistici.org/bakunin/libmrss/doc/

View File

@ -1,23 +1,17 @@
# Ports collection makefile for: libmrss
# Date created: Jan 2, 2007
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= libmrss
PORTVERSION= 0.19.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.autistici.org/bakunin/libmrss/
MAINTAINER= clsung@FreeBSD.org
COMMENT= A C library for parsing, writing, and creating RSS
COMMENT= C library for parsing, writing, and creating RSS
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
nxml.18:${PORTSDIR}/textproc/libnxml
OPTIONS= PHPMRSS "support to PHP" on
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
nxml:${PORTSDIR}/textproc/libnxml
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
@ -25,24 +19,6 @@ LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
USE_PKGCONFIG= yes
WANT_GNOME= yes
USE_GNOME= gnomehack
pre-patch:
${gnomehack_PRE_PATCH}
.include <bsd.port.pre.mk>
.if defined(WITH_PHPMRSS)
BROKEN= does not compile
USE_PHP= yes
USE_PHP_BUILD= yes
USE_AUTOTOOLS+= autoconf:env
post-install:
@(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
@(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} CC=${CC} ./configure; ${MAKE} install)
PLIST_SUB+= PHPMRSS=""
.else
PLIST_SUB+= PHPMRSS="@comment "
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
mRss is a C library for parsing, writing and creating RSS files or streams.
WWW: http://www2.autistici.org/bakunin/libmrss/doc/
WWW: http://www2.autistici.org/bakunin/libmrss/doc/

View File

@ -1,10 +1,6 @@
@comment $FreeBSD$
include/mrss.h
lib/libmrss.a
lib/libmrss.la
lib/libmrss.so
lib/libmrss.so.19
libdata/pkgconfig/mrss.pc
%%PHPMRSS%%lib/php/%%PHP_EXT_DIR%%/mrss.so
%%PHPMRSS%%@dirrmtry lib/php/%%PHP_EXT_DIR%%
%%PHPMRSS%%@dirrmtry lib/php