Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hugo Hörnquist
Guile Gumbo
Commits
52180eff
Commit
52180eff
authored
Jul 02, 2020
by
Hugo Hörnquist
Browse files
Fix installation + README.
parent
9843707c
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
52180eff
*.x
*.go
Makefile
View file @
52180eff
.PHONY
:
all install
CFLAGS
=
-Wall
$(
shell
pkg-config
--cflags
gumbo
)
$(
shell
guile-config compile
)
LDLIBS
=
$(
shell
pkg-config
--libs
gumbo
)
$(
shell
guile-config
link
)
GUILE_SITE_DIR
=
$(
shell
guile
-c
"(display (%site-dir
))
"
)
GUILE_CCACHE_DIR
=
$(
shell
guile
-c
"(display (%site-ccache-dir
))
"
)
TARGET
=
libguile-gumbo.so
DESTDIR
=
all
:
${TARGET}
all
:
${TARGET}
gumbo.go
guile-gumbo.o
:
guile-gumbo.x
%.o
:
%.c
$(CC)
-c
$(CFLAGS)
-o
$@
-fPIC
$<
$(CC)
-O2
-c
$(CFLAGS)
-o
$@
-fPIC
$<
%.x
:
%.c
guile-snarf
-o
$@
$(CFLAGS)
$<
%.go
:
%.scm
guild compile
-o
$@
$<
${TARGET}
:
guile-gumbo.o
$(CC)
-shared
-o
$@
-fPIC
$^
$(LDLIBS)
install
:
all
install
-m
644
-Dt
${DESTDIR}${GUILE_CCACHE_DIR}
/sxml/ gumbo.go
install
-m
644
-Dt
${DESTDIR}${GUILE_SITE_DIR}
/sxml/ gumbo.scm
install
-Dt
${DESTDIR}
/usr/lib/ libguile-gumbo.so
clean
:
-
rm
*
.o
-
rm
*
.so
-
rm
*
.x
-
rm
*
.go
README.md
0 → 100644
View file @
52180eff
Guile Bindings for Gumbo
========================
Guile bindings for the
[
Gumbo HTML5 parser
](
https://github.com/google/gumbo-parser/
)
.
Contains the Guile module
`(sxml gumbo)`
, which exports the single method
`html->sxml`
.
Example:
(html->sxml "Hello")
⇒ (*TOP* (html (head) (body "Hello")))
(html->sxml "<!doctype html><title>Minimum valid document</title>")
⇒ (*TOP* (*PI* "html") (html (head (title "Minimum valid document")) (body)))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment