Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2022 18:38:16 GMT
From:      =?utf-8?Q?Stefan=20E=C3=9Fer?= <se@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f017dfa2409e - main - textproc/py-transpopy: Do not install LICENSE in ${PREFIX}
Message-ID:  <202209171838.28HIcG60088635@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f017dfa2409e8851ac79b85c731e8f15d76e7e2f

commit f017dfa2409e8851ac79b85c731e8f15d76e7e2f
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2022-09-17 18:33:36 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-09-17 18:38:04 +0000

    textproc/py-transpopy: Do not install LICENSE in ${PREFIX}
    
    In addition to the patch provided by Jesús Daniel Colmenares Oviedo
    I have added the license file to the package for installation in the
    system's licenses directory.
    
    PR:             236619
---
 textproc/py-transpopy/Makefile             |  4 +++-
 textproc/py-transpopy/files/patch-setup.py | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/textproc/py-transpopy/Makefile b/textproc/py-transpopy/Makefile
index 0c63df779692..8991cb3e8950 100644
--- a/textproc/py-transpopy/Makefile
+++ b/textproc/py-transpopy/Makefile
@@ -1,14 +1,16 @@
 PORTNAME=	transpopy
 PORTVERSION=	0.2.0
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	contato@kanazuchi.com
 COMMENT=	Translate PO file strings with Google Translate API
-WWW=		https://github.com/kanazux/transpopy
+WWW=		https://github.com/kanazux/transpopy/
 
 LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-cloud-translate>=0:www/py-google-cloud-translate@${PY_FLAVOR}
 
diff --git a/textproc/py-transpopy/files/patch-setup.py b/textproc/py-transpopy/files/patch-setup.py
new file mode 100644
index 000000000000..f82e2e616fa2
--- /dev/null
+++ b/textproc/py-transpopy/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig	2022-09-17 02:34:34 UTC
++++ setup.py
+@@ -7,7 +7,6 @@ setup(name='transpopy',
+       install_requires=['google-cloud-translate'],
+       packages=['transpopy'],
+       package_data={'transpopy': ['transpopy/*']},
+-      data_files=[('LICENSE')],
+       entry_points={'console_scripts': ['transpopy=transpopy.__main__:main']},
+       description='A simple script to translate po files.',
+       long_description=("Read a po file and translate the msgids with the "



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209171838.28HIcG60088635>