mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
bd07e61e5b
* Fix PATH problems during README.html generation if "make -DPORTSTOP readmes" is defined. [2] * Add support for early rcNG startup scripts. [3] * Remove duplicate USE_XLIB handling. [4] * Add check for USE_PYTHON_(BUILD|RUN), and include bsd.python.mk if both are specified. [5] * Use PRE-INSTALL target for SUB_FILES and SUB_LIST. [6] * Introduce bsd.gstreamer.mk and utilize new macros: USE_GSTREAMER/WANT_GSTREAMER. [7] PR: ports/77634 [1], ports/77592 [2], ports/77385 [3], ports/77557 [4], ports/77344 [5], ports/77211 [6], ports/77838 [7] Submitted by: krion [1] [2], Florent Thoumie <flz@xbsd.org> [3] [6], pav [4], lofi [5], ahze [7]
48 lines
969 B
Perl
48 lines
969 B
Perl
#!/usr/bin/perl
|
|
|
|
$README=`cat ${PORTSDIR}/README.port`;
|
|
|
|
while(<>) {
|
|
split '\|';
|
|
|
|
$PKG=$_[0];
|
|
$PORT=$_[1];
|
|
$COMMENT=$_[3];
|
|
$DESCR=$_[4];
|
|
$EMAIL=$_[5];
|
|
$BUILD_DEPENDS=$_[7];
|
|
$RUN_DEPENDS=$_[8];
|
|
$WEBSITE=$_[9];
|
|
|
|
$DESCR=~s|^\Q$PORT/\E||;
|
|
$PORT=~s|`pwd`||;
|
|
|
|
if($WEBSITE) {
|
|
$WEBSITE=" and/or visit the <a href=\"$WEBSITE\">web site</a> for futher informations"
|
|
};
|
|
if($BUILD_DEPENDS) {
|
|
$BUILD_DEPENDS="This port requires package(s) \"$BUILD_DEPENDS\" to build."
|
|
};
|
|
if($RUN_DEPENDS) {
|
|
$RUN_DEPENDS="This port requires package(s) \"$RUN_DEPENDS\" to run."
|
|
};
|
|
|
|
$TOP=$PORT;
|
|
$TOP=~s|[^/]+|..|g;
|
|
|
|
$tmp=$README;
|
|
$tmp=~s|%%PKG%%|$PKG|g;
|
|
$tmp=~s|%%PORT%%|$PORT|g;
|
|
$tmp=~s|%%COMMENT%%|$COMMENT|g;
|
|
$tmp=~s|%%DESCR%%|$DESCR|g;
|
|
$tmp=~s|%%EMAIL%%|$EMAIL|g;
|
|
$tmp=~s|%%WEBSITE%%|$WEBSITE|g;
|
|
$tmp=~s|%%BUILD_DEPENDS%%|$BUILD_DEPENDS|g;
|
|
$tmp=~s|%%RUN_DEPENDS%%|$RUN_DEPENDS|g;
|
|
$tmp=~s|%%TOP%%|$TOP|g;
|
|
|
|
open F,">$PORT/README.html";
|
|
print F $tmp;
|
|
close F
|
|
}
|