import rarian 0.8.1
Rarian is a documentation metadata library based on the proposed Freedesktop.org spec. rarian will eventually replace scrollkeeper, but it may need a little tweaking (and they conflict); hence it's not hooked up yet. mostly done on some couch in antwerp with too much wine, so i forgot about it..
This commit is contained in:
parent
266bd2dfb2
commit
85294bb416
49
textproc/rarian/Makefile
Executable file
49
textproc/rarian/Makefile
Executable file
@ -0,0 +1,49 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
|
||||
COMMENT= documentation metadata library
|
||||
|
||||
GNOME_PROJECT= rarian
|
||||
GNOME_VERSION= 0.8.1
|
||||
SHARED_LIBS += rarian 0.0 # .0.0
|
||||
CATEGORIES= textproc
|
||||
|
||||
HOMEPAGE= http://rarian.freedesktop.org/
|
||||
|
||||
# LGPLv2.1/GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c m stdc++
|
||||
|
||||
MODULES= x11/gnome
|
||||
|
||||
RUN_DEPENDS= ::misc/gnugetopt \
|
||||
::shells/bash \
|
||||
::textproc/docbook \
|
||||
::textproc/libxslt
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --localstatedir="/var" \
|
||||
--with-xml-catalog="/var/db/xmlcatalog" \
|
||||
--with-omfdirs="${LOCALBASE}/share/omf" \
|
||||
--enable-installed \
|
||||
--enable-scrollkeeper-compat \
|
||||
--enable-omf-read \
|
||||
--disable-skdb-update
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
# The .in files in ${WRKSRC}/util/ don't have a newline at the end
|
||||
# of the file, which causes diff(1) to puke.
|
||||
post-extract:
|
||||
@echo "" >> ${WRKSRC}/util/rarian-sk-*.in
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/librarian/rarian-man.c \
|
||||
${WRKSRC}/librarian/rarian-man.c \
|
||||
${WRKSRC}/librarian/rarian-info.c
|
||||
|
||||
.include <bsd.port.mk>
|
5
textproc/rarian/distinfo
Normal file
5
textproc/rarian/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (rarian-0.8.1.tar.bz2) = dQkRheE9pnoP9Ced4XV7lA==
|
||||
RMD160 (rarian-0.8.1.tar.bz2) = LkwKTSKk4MQdTT3I5KWtCA7jts4=
|
||||
SHA1 (rarian-0.8.1.tar.bz2) = mz8brRzbsN5R1vdEMbIOs2R+3Fo=
|
||||
SHA256 (rarian-0.8.1.tar.bz2) = qv6IbUbkZ+s0FOkfqeQpVb1LYYw+GcQsdzAmsgWoRXc=
|
||||
SIZE (rarian-0.8.1.tar.bz2) = 324441
|
12
textproc/rarian/patches/patch-librarian_rarian-info_c
Normal file
12
textproc/rarian/patches/patch-librarian_rarian-info_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-librarian_rarian-info_c,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
--- librarian/rarian-info.c.orig Sat Nov 22 17:17:52 2008
|
||||
+++ librarian/rarian-info.c Sat Nov 22 17:18:55 2008
|
||||
@@ -565,7 +565,7 @@ sanity_check_categories ()
|
||||
static void
|
||||
rrn_info_init (void)
|
||||
{
|
||||
- char *default_dirs = "/usr/info:/usr/share/info:/usr/local/info:/usr/local/share/info";
|
||||
+ char *default_dirs = "/usr/share/info:${LOCALBASE}/info";
|
||||
char *info_dirs = NULL;
|
||||
char *split = NULL;
|
||||
int free_info_dirs = FALSE;
|
12
textproc/rarian/patches/patch-librarian_rarian-main_c
Normal file
12
textproc/rarian/patches/patch-librarian_rarian-main_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-librarian_rarian-main_c,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
--- librarian/rarian-main.c.orig Sat Nov 22 17:04:05 2008
|
||||
+++ librarian/rarian-main.c Sat Nov 22 17:04:19 2008
|
||||
@@ -215,7 +215,7 @@ past:
|
||||
path = getenv ("XDG_DATA_DIRS");
|
||||
|
||||
if (!path || !strcmp (path, "")) {
|
||||
- path = "/usr/local/share/:/usr/share/";
|
||||
+ path = "${PREFIX}/share:/usr/share/";
|
||||
}
|
||||
cur_path = path;
|
||||
|
12
textproc/rarian/patches/patch-librarian_rarian-man_c
Normal file
12
textproc/rarian/patches/patch-librarian_rarian-man_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-librarian_rarian-man_c,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
--- librarian/rarian-man.c.orig Sat Nov 22 17:15:57 2008
|
||||
+++ librarian/rarian-man.c Sat Nov 22 17:17:01 2008
|
||||
@@ -143,7 +143,7 @@ setup_man_path ()
|
||||
if (input)
|
||||
free(input);
|
||||
/* Hard coded default. Don't argue. */
|
||||
- input = strdup ("/usr/share/man:/usr/man:/usr/local/share/man:/usr/local/man");
|
||||
+ input = strdup ("/usr/share/man:${LOCALBASE}/man");
|
||||
}
|
||||
colon = input;
|
||||
|
11
textproc/rarian/patches/patch-util_Makefile_in
Normal file
11
textproc/rarian/patches/patch-util_Makefile_in
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-util_Makefile_in,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
--- util/Makefile.in.orig Sat Nov 22 17:35:30 2008
|
||||
+++ util/Makefile.in Sat Nov 22 17:35:42 2008
|
||||
@@ -828,7 +828,6 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIP
|
||||
@ENABLE_INSTALL_TRUE@@ENABLE_SK_COMPAT_TRUE@ @cd $(DESTDIR)$(bindir); ln -s rarian-sk-rebuild scrollkeeper-rebuilddb
|
||||
@ENABLE_INSTALL_TRUE@@ENABLE_SK_COMPAT_TRUE@ @cd $(DESTDIR)$(bindir); ln -s rarian-sk-install scrollkeeper-uninstall
|
||||
@ENABLE_INSTALL_TRUE@@ENABLE_SK_COMPAT_TRUE@ @cd $(DESTDIR)$(bindir); ln -s rarian-sk-update scrollkeeper-update
|
||||
-@ENABLE_INSTALL_TRUE@@ENABLE_SK_COMPAT_TRUE@ @mkdir -p $(DESTDIR)/$(localstatedir)/lib/rarian
|
||||
@ENABLE_INSTALL_TRUE@@ENABLE_SKDB_UPDATE_TRUE@@ENABLE_SK_COMPAT_TRUE@ @echo "Translating current database"
|
||||
@ENABLE_INSTALL_TRUE@@ENABLE_SKDB_UPDATE_TRUE@@ENABLE_SK_COMPAT_TRUE@ @$(DESTDIR)$(bindir)/rarian-sk-update
|
||||
|
15
textproc/rarian/patches/patch-util_rarian-sk-config_in
Normal file
15
textproc/rarian/patches/patch-util_rarian-sk-config_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-util_rarian-sk-config_in,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
|
||||
Fix location to rarian's localstatedir.
|
||||
|
||||
--- util/rarian-sk-config.in.orig Sat Nov 22 16:51:42 2008
|
||||
+++ util/rarian-sk-config.in Sat Nov 22 16:52:06 2008
|
||||
@@ -8,7 +8,7 @@ prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@
|
||||
convert_dir=@CONVERT_DIR@
|
||||
-statedir=@localstatedir@/lib/rarian
|
||||
+statedir=@localstatedir@/db/rarian
|
||||
datarootdir=@datarootdir@
|
||||
datadir=@datadir@
|
||||
output_dir=${datadir}/help
|
15
textproc/rarian/patches/patch-util_rarian-sk-rebuild_in
Normal file
15
textproc/rarian/patches/patch-util_rarian-sk-rebuild_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-util_rarian-sk-rebuild_in,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
|
||||
Fix location to rarian's localstatedir.
|
||||
|
||||
--- util/rarian-sk-rebuild.in.orig Sat Nov 22 16:51:42 2008
|
||||
+++ util/rarian-sk-rebuild.in Sat Nov 22 16:51:59 2008
|
||||
@@ -9,7 +9,7 @@ exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@
|
||||
convert_dir=@CONVERT_DIR@
|
||||
datarootdir=@datarootdir@
|
||||
-statedir=@localstatedir@/lib/rarian
|
||||
+statedir=@localstatedir@/db/rarian
|
||||
datadir=@datadir@
|
||||
output_dir=${datadir}/help
|
||||
package_version=@PACKAGE_VERSION@
|
25
textproc/rarian/patches/patch-util_rarian-sk-update_in
Normal file
25
textproc/rarian/patches/patch-util_rarian-sk-update_in
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-util_rarian-sk-update_in,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
|
||||
Fix location to rarian's localstatedir.
|
||||
Use the full path to gnugetopt
|
||||
|
||||
--- util/rarian-sk-update.in.orig Sat Nov 22 16:58:05 2008
|
||||
+++ util/rarian-sk-update.in Sat Nov 22 16:58:26 2008
|
||||
@@ -19,7 +19,7 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@
|
||||
-statedir=@localstatedir@/lib/rarian
|
||||
+statedir=@localstatedir@/db/rarian
|
||||
convert_dir=@CONVERT_DIR@
|
||||
datarootdir=@datarootdir@
|
||||
datadir=@datadir@
|
||||
@@ -264,7 +264,7 @@ process_directory ()
|
||||
# They are inherited from scrollkeeper :(
|
||||
|
||||
# We use TEMP as set -- seems to nuke the return value of getopt
|
||||
-TEMP=`getopt -u -n$(basename $0) -o "o:r:p:vqnhV" \
|
||||
+TEMP=`${prefix}/bin/gnugetopt -u -n$(basename $0) -o "o:r:p:vqnhV" \
|
||||
-- "$@"` \
|
||||
|| print_usage
|
||||
|
2
textproc/rarian/pkg/DESCR
Executable file
2
textproc/rarian/pkg/DESCR
Executable file
@ -0,0 +1,2 @@
|
||||
Rarian is a documentation metadata library based on the proposed
|
||||
Freedesktop.org spec.
|
2
textproc/rarian/pkg/PFRAG.shared
Executable file
2
textproc/rarian/pkg/PFRAG.shared
Executable file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
@lib lib/librarian.so.${LIBrarian_VERSION}
|
58
textproc/rarian/pkg/PLIST
Normal file
58
textproc/rarian/pkg/PLIST
Normal file
@ -0,0 +1,58 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/12/16 10:01:38 jasper Exp $
|
||||
@conflict scrollkeeper-*
|
||||
%%SHARED%%
|
||||
@bin bin/rarian-example
|
||||
bin/rarian-sk-config
|
||||
bin/rarian-sk-extract
|
||||
@bin bin/rarian-sk-gen-uuid
|
||||
@bin bin/rarian-sk-get-cl
|
||||
bin/rarian-sk-get-content-list
|
||||
bin/rarian-sk-get-extended-content-list
|
||||
bin/rarian-sk-get-scripts
|
||||
bin/rarian-sk-install
|
||||
@bin bin/rarian-sk-migrate
|
||||
@bin bin/rarian-sk-preinstall
|
||||
bin/rarian-sk-rebuild
|
||||
bin/rarian-sk-update
|
||||
bin/scrollkeeper-config
|
||||
bin/scrollkeeper-extract
|
||||
bin/scrollkeeper-gen-seriesid
|
||||
bin/scrollkeeper-get-cl
|
||||
bin/scrollkeeper-get-content-list
|
||||
bin/scrollkeeper-get-extended-content-list
|
||||
bin/scrollkeeper-get-index-from-docpath
|
||||
bin/scrollkeeper-get-toc-from-docpath
|
||||
bin/scrollkeeper-get-toc-from-id
|
||||
bin/scrollkeeper-install
|
||||
bin/scrollkeeper-preinstall
|
||||
bin/scrollkeeper-rebuilddb
|
||||
bin/scrollkeeper-uninstall
|
||||
bin/scrollkeeper-update
|
||||
include/rarian/
|
||||
include/rarian/rarian-info.h
|
||||
include/rarian/rarian-main.h
|
||||
include/rarian/rarian-man.h
|
||||
include/rarian/rarian-reg-utils.h
|
||||
include/rarian/rarian.h
|
||||
lib/librarian.a
|
||||
lib/librarian.la
|
||||
lib/pkgconfig/rarian.pc
|
||||
share/help/
|
||||
share/help/rarian.document
|
||||
share/librarian/
|
||||
share/librarian/Templates/
|
||||
share/librarian/Templates/C/
|
||||
share/librarian/Templates/C/scrollkeeper_cl.xml
|
||||
share/librarian/manual/
|
||||
share/librarian/manual/help-spec-0.2.xml
|
||||
share/librarian/manual/index.xhtml
|
||||
share/librarian/manual/rar-lib.xhtml
|
||||
share/librarian/manual/rar-mdf.xhtml
|
||||
share/librarian/manual/rar-skcompat.xhtml
|
||||
share/librarian/rarian-sk-cl.xml
|
||||
@exec %D/share/libxml2/rebuild
|
||||
@exec %D/bin/rarian-rebuilddb -q
|
||||
@unexec %D/share/libxml2/rebuild
|
||||
@extraunexec rm -rf /var/db/rarian/
|
||||
@extraunexec rm -f /var/log/rarian.log*
|
||||
@exec %D/bin/rarian-sk-update || true
|
Loading…
Reference in New Issue
Block a user