Re: Looking to port weasyprint

2019-05-20 Thread Kurt Jaeger
Hi!

> Thanks, but it does not work, yet:
> 
> $ weasyprint http://weasyprint.org /tmp/weasyprint-website.pdf
[...]

I tried, and it looks difficult to fix quickly.

It needs www/py-cssselect2 (which does not yet exist) and
graphics/py-cairocffi (same problem), both have further
dependencies, like textproc/py-tinycss2 (not existing, either).
There are probably more things like that.

So this will take a while.

-- 
p...@opsec.eu+49 171 3101372One year to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Looking to port weasyprint

2019-05-20 Thread Kurt Jaeger
Hi!

> > > A simple testbuild in poudriere after some cleanup seems to work.
> > > I'm testbuilding right now.
> > 
> > Committed as r502116, print/py-weasyprint, with the following
> > description:
[...]
> Thanks, but it does not work, yet:
> 
> $ weasyprint http://weasyprint.org /tmp/weasyprint-website.pdf

Ah, thanks! I'll have a look now.

-- 
p...@freebsd.org +49 171 3101372  One year to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Looking to port weasyprint

2019-05-20 Thread Jason Barbier
looks like it's not installing CairoSVG

Sent from my a tiny pocket computer.

> On May 20, 2019, at 07:28, Lars Engels  wrote:
> 
>> On Mon, May 20, 2019 at 04:00:00PM +0200, Kurt Jaeger wrote:
>> Hi!
>> 
>>> A simple testbuild in poudriere after some cleanup seems to work.
>>> I'm testbuilding right now.
>> 
>> Committed as r502116, print/py-weasyprint, with the following
>> description:
>> 
>> WeasyPrint helps web developers to create PDF documents. It turns simple
>> HTML pages into gorgeous PDF.
>> 
>> WWW: https://weasyprint.org/
>> 
> 
> Thanks, but it does not work, yet:
> 
> $ weasyprint http://weasyprint.org /tmp/weasyprint-website.pdf
> 
> Traceback (most recent call last):
>  File "/usr/local/bin/weasyprint", line 6, in 
>from pkg_resources import load_entry_point
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 3241, in 
>@_call_aside
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 3225, in _call_aside
>f(*args, **kwargs)
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 3254, in _initialize_master_working_set
>working_set = WorkingSet._build_master()
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 583, in _build_master
>ws.require(__requires__)
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 900, in require
>needed = self.resolve(parse_requirements(requirements))
>  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", 
> line 786, in resolve
>raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'CairoSVG>=1.0.20' distribution was 
> not found and is required by WeasyPrint
> 
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Looking to port weasyprint

2019-05-20 Thread Lars Engels
On Mon, May 20, 2019 at 04:00:00PM +0200, Kurt Jaeger wrote:
> Hi!
> 
> > A simple testbuild in poudriere after some cleanup seems to work.
> > I'm testbuilding right now.
> 
> Committed as r502116, print/py-weasyprint, with the following
> description:
> 
> WeasyPrint helps web developers to create PDF documents. It turns simple
> HTML pages into gorgeous PDF.
> 
> WWW: https://weasyprint.org/
> 

Thanks, but it does not work, yet:

$ weasyprint http://weasyprint.org /tmp/weasyprint-website.pdf

Traceback (most recent call last):
  File "/usr/local/bin/weasyprint", line 6, in 
from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
3241, in 
@_call_aside
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
3225, in _call_aside
f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
583, in _build_master
ws.require(__requires__)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
900, in require
needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 
786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'CairoSVG>=1.0.20' distribution was not 
found and is required by WeasyPrint

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Looking to port weasyprint

2019-05-20 Thread Kurt Jaeger
Hi!

> A simple testbuild in poudriere after some cleanup seems to work.
> I'm testbuilding right now.

Committed as r502116, print/py-weasyprint, with the following
description:

WeasyPrint helps web developers to create PDF documents. It turns simple
HTML pages into gorgeous PDF.

WWW: https://weasyprint.org/

-- 
p...@opsec.eu+49 171 3101372One year to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Looking to port weasyprint

2019-05-20 Thread Kurt Jaeger
Hi!

> I tried creating this port butI am new to FreeBSD ports (I am a NetBSD
> committer) and I can't seem to make this work.  I can get the package
> built but it has lots of errors.

What type of errors do you get ? Did you test the build using poudriere ?

> Here is my attempt.  Can anyone help
> and, once working, commit it?

A simple testbuild in poudriere after some cleanup seems to work.
I'm testbuilding right now.

-- 
p...@opsec.eu+49 171 3101372One year to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Looking to port weasyprint

2019-05-20 Thread D'Arcy Cain
I tried creating this port butI am new to FreeBSD ports (I am a NetBSD
committer) and I can't seem to make this work.  I can get the package
built but it has lots of errors.  Here is my attempt.  Can anyone help
and, once working, commit it?

# Created by: D'Arcy Cain 
# $FreeBSD$

PORTNAME=   weasyprint
PORTVERSION=47
CATEGORIES= print python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   WeasyPrint-${PORTVERSION}

MAINTAINER= da...@druid.net
COMMENT=Converts HTML/CSS documents to PDF
LICENSE=BSD3CLAUSE

USE_GNOME= pango
RUN_DEPENDS+= 
${PYTHON_PKGNAMEPREFIX}cssselect>=0.1:www/py-cssselect@${PY_FLAVOR}
RUN_DEPENDS+= 
${PYTHON_PKGNAMEPREFIX}html5lib>=0.9:www/py-html5lib@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pdfrw>=0.4:textproc/py-pdfrw@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pyphen>=0.8:textproc/py-pyphen@${PY_FLAVOR}
RUN_DEPENDS+= 
${PYTHON_PKGNAMEPREFIX}tinycss>=0.4:textproc/py-tinycss@${PY_FLAVOR}

USES=   python
USE_PYTHON= distutils autoplist

.include 


-- 
D'Arcy J.M. Cain  |  Democracy is three wolves
http://www.druid.net/darcy/|  and a sheep voting on
+1 416 788 2246 (DoD#0082)(eNTP)   |  what's for dinner.
IM: da...@vex.net, VoIP: sip:da...@druid.net
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"