mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add mdocml recipe
This commit is contained in:
11
app-text/mdocml/licenses/ISC
Normal file
11
app-text/mdocml/licenses/ISC
Normal file
@@ -0,0 +1,11 @@
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
70
app-text/mdocml/mdocml-1.12.2.recipe
Normal file
70
app-text/mdocml/mdocml-1.12.2.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
SUMMARY="A suite of tools for compiling roff and man pages."
|
||||
DESCRIPTION="
|
||||
mdocml is a suite of tools compiling mdoc, the roff macro package of
|
||||
choice for BSD manual pages, and man, the predominant historical
|
||||
package for UNIX manuals. The mission of mdocml is to deprecate
|
||||
groff, the GNU troff implementation, for displaying mdoc pages whilst
|
||||
providing token support for man."
|
||||
|
||||
HOMEPAGE="http://mdocml.bsd.lv/"
|
||||
SRC_URI="http://mdocml.bsd.lv/snapshots/mdocml-1.12.2.tar.gz"
|
||||
CHECKSUM_MD5="aacd171e99d856d003f244f4a9d6c31b"
|
||||
COPYRIGHT="2008-2013 Ingo Schwarze, Kristaps Dzonsons"
|
||||
LICENSE="ISC"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
PROVIDES="
|
||||
mdocml = $portVersion
|
||||
cmd:mandoc = $portVersion
|
||||
cmd:preconv = $portVersion
|
||||
cmd:demandoc = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES=""
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
mdocml_devel = $portVersion compat >= 1.12
|
||||
devel:libmandoc
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
mdocml == $portVersion
|
||||
"
|
||||
|
||||
PATCHES="mdocml-1.12.2.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make PREFIX=$prefix \
|
||||
BINDIR=$binDir \
|
||||
INCLUDEDIR=$includeDir/mandoc \
|
||||
LIBDIR=$libDir \
|
||||
MANDIR=$manDir \
|
||||
DBBIN=""
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make PREFIX=$prefix \
|
||||
BINDIR=$binDir \
|
||||
INCLUDEDIR=$includeDir/mandoc \
|
||||
LIBDIR=$libDir \
|
||||
MANDIR=$manDir \
|
||||
DBBIN="" \
|
||||
install
|
||||
|
||||
prepareInstalledDevelLib libmandoc
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
28
app-text/mdocml/patches/mdocml-1.12.2.patch
Normal file
28
app-text/mdocml/patches/mdocml-1.12.2.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff -up mdocml-1.12.2/Makefile.orig mdocml-1.12.2/Makefile
|
||||
--- mdocml-1.12.2/Makefile.orig 2013-10-16 23:58:37.828637184 -0600
|
||||
+++ mdocml-1.12.2/Makefile 2013-10-16 23:59:08.458227712 -0600
|
||||
@@ -32,7 +32,7 @@ STATIC = -static
|
||||
#STATIC += -pthread
|
||||
|
||||
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
|
||||
-CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
|
||||
+CFLAGS += -W -Wall -Wstrict-prototypes -Wwrite-strings
|
||||
PREFIX = /usr/local
|
||||
WWWPREFIX = /var/www
|
||||
HTDOCDIR = $(WWWPREFIX)/htdocs
|
||||
@@ -316,7 +316,6 @@ clean:
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(BINDIR)
|
||||
- mkdir -p $(DESTDIR)$(EXAMPLEDIR)
|
||||
mkdir -p $(DESTDIR)$(LIBDIR)
|
||||
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
||||
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
||||
@@ -328,7 +327,6 @@ install: all
|
||||
$(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1
|
||||
$(INSTALL_MAN) mandoc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3
|
||||
$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
|
||||
- $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)
|
||||
|
||||
installcgi: all
|
||||
mkdir -p $(DESTDIR)$(CGIBINDIR)
|
||||
Reference in New Issue
Block a user