diff options
author | yuri <yuri@FreeBSD.org> | 2017-12-04 00:53:46 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2017-12-04 00:53:46 +0800 |
commit | 682455169f9036f0253b077d097ec67be96e4cb5 (patch) | |
tree | 9645e111e3c181769e98237494ace7cc6d9bca79 /graphics | |
parent | cd7c6538d55bfe17dc580abdf58d402f41df7ebe (diff) | |
download | freebsd-ports-gnome-682455169f9036f0253b077d097ec67be96e4cb5.tar.gz freebsd-ports-gnome-682455169f9036f0253b077d097ec67be96e4cb5.tar.zst freebsd-ports-gnome-682455169f9036f0253b077d097ec67be96e4cb5.zip |
New port: graphics/py-photocollage: Graphical tool to make photo collage posters
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D13341
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/py-photocollage/Makefile | 34 | ||||
-rw-r--r-- | graphics/py-photocollage/distinfo | 3 | ||||
-rw-r--r-- | graphics/py-photocollage/pkg-descr | 7 |
4 files changed, 45 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 7f556e6ded60..728fb33cc798 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -883,6 +883,7 @@ SUBDIR += py-openexr SUBDIR += py-openimageio SUBDIR += py-paint + SUBDIR += py-photocollage SUBDIR += py-pillow SUBDIR += py-pivy SUBDIR += py-plotly diff --git a/graphics/py-photocollage/Makefile b/graphics/py-photocollage/Makefile new file mode 100644 index 000000000000..7ae8490dc5f8 --- /dev/null +++ b/graphics/py-photocollage/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= photocollage +DISTVERSION= 1.4.4 +CATEGORIES= graphics python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Graphical tool to make photo collage posters + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>:devel/py-six@${FLAVOR} + +USES= gettext-tools python +USE_PYTHON= autoplist concurrent distutils +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e ' \ + s|${PORTNAME}|${PORTNAME}-${PYTHON_VER}| ; \ + s|^Name.*|& (python${PYTHON_VER})|' \ + ${WRKSRC}/data/${PORTNAME}.desktop + @${REINPLACE_CMD} -E 's/photocollage\.(png|svg|desktop|appdata\.xml)/photocollage-${PYTHON_VER}.\1/' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -E 's/APP_NAME = "photocollage"/APP_NAME = "photocollage-${PYTHON_VER}"/' ${WRKSRC}/photocollage/__init__.py + @cd ${WRKSRC} && for f in $$(${FIND} -E . -regex '.*\.(png|svg|desktop|appdata\.xml)'); do \ + ${MV} $$f $$(${ECHO} $$f | ${SED} -E 's|photocollage\.([[:alpha:].]*)|photocollage-${PYTHON_VER}.\1|'); \ + done + +.include <bsd.port.mk> diff --git a/graphics/py-photocollage/distinfo b/graphics/py-photocollage/distinfo new file mode 100644 index 000000000000..4c350bbc00a8 --- /dev/null +++ b/graphics/py-photocollage/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1512206067 +SHA256 (photocollage-1.4.4.tar.gz) = 3606422f1c09afcf10ba2567642580ac1a0447d7de8b4a10e4d380177b563ca9 +SIZE (photocollage-1.4.4.tar.gz) = 186404 diff --git a/graphics/py-photocollage/pkg-descr b/graphics/py-photocollage/pkg-descr new file mode 100644 index 000000000000..a27ac492b0d4 --- /dev/null +++ b/graphics/py-photocollage/pkg-descr @@ -0,0 +1,7 @@ +PhotoCollage allows you to create photo collage posters. It assembles the input +photographs it is given to generate a big poster. Photos are automatically +arranged to fill the whole poster, then you can change the final layout, +dimensions, border or swap photos in the generated grid. Eventually the final +poster image can be saved in any size. + +WWW: https://github.com/adrienverge/PhotoCollage |