diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-01 02:21:12 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-01 02:21:12 +0800 |
commit | 8bf02628694f7757e010debfce3c056f029399d3 (patch) | |
tree | c0e3f2fc08295d490cf908abfe570e5b6c8d824f /deskutils | |
parent | 03e288f14a160bdc760d5d49a28f8e3018841a0c (diff) | |
download | freebsd-ports-gnome-8bf02628694f7757e010debfce3c056f029399d3.tar.gz freebsd-ports-gnome-8bf02628694f7757e010debfce3c056f029399d3.tar.zst freebsd-ports-gnome-8bf02628694f7757e010debfce3c056f029399d3.zip |
- Fix documentation handling as it doesn't work properly with autoplist
- Simplify patching, don't patch and REINPLACE_CMD a same file
- Add LICENSE_FILE
- Add NO_ARCH
- Pet portlint
PR: 203013
Submitted by: amdmi3
Approved by: maintainer timeout (seawolf@marinewolf.net, 3 weeks)
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/ljcharm/Makefile | 14 | ||||
-rw-r--r-- | deskutils/ljcharm/files/patch-setup.py | 19 |
2 files changed, 21 insertions, 12 deletions
diff --git a/deskutils/ljcharm/Makefile b/deskutils/ljcharm/Makefile index 1814aadf5efc..90d8e2ebf69c 100644 --- a/deskutils/ljcharm/Makefile +++ b/deskutils/ljcharm/Makefile @@ -3,6 +3,7 @@ PORTNAME= charm PORTVERSION= 1.9.2 +PORTREVISION= 1 CATEGORIES= deskutils net MASTER_SITES= SF/lj${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -10,23 +11,24 @@ MAINTAINER= seawolf@marinewolf.net COMMENT= Menu-driven python-based livejournal client LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:2 -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils +NO_ARCH= yes PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES -post-patch: - ${REINPLACE_CMD} -e 's,share/doc/charm,${DOCSDIR},' ${WRKSRC}/setup.py - ${REINPLACE_CMD} -e 's,1.9.1,1.9.2,' ${WRKSRC}/setup.py - -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/CHANGES.charm ${STAGEDIR}${DOCSDIR}/CHANGES ${INSTALL_DATA} ${WRKSRC}/README.charm ${STAGEDIR}${DOCSDIR}/README + ${INSTALL_DATA} ${WRKSRC}/charm.html ${STAGEDIR}${DOCSDIR}/ + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/sample.charmrc ${STAGEDIR}${EXAMPLESDIR} diff --git a/deskutils/ljcharm/files/patch-setup.py b/deskutils/ljcharm/files/patch-setup.py index 3e9d79f76886..a39454e701b3 100644 --- a/deskutils/ljcharm/files/patch-setup.py +++ b/deskutils/ljcharm/files/patch-setup.py @@ -1,12 +1,19 @@ ---- ./setup.py Fri Jun 24 15:10:27 2005 -+++ ./setup.py.update Fri Jun 24 15:12:28 2005 -@@ -8,6 +8,6 @@ - url = "http://ljcharm.sourceforge.net", +--- setup.py.orig 2013-03-28 03:14:46 UTC ++++ setup.py +@@ -1,13 +1,12 @@ + from distutils.core import setup + + setup(name = "charm", +- version = "1.9.1", ++ version = "1.9.2", + description = "Text-based console client for LiveJournal", + author = "Lydia Leong", + author_email = "evilhat@livejournal.com", + url = "http://ljcharm.sourceforge.net/", py_modules = ["ljcharm"], scripts = ["charm"], - data_files = [ ("share/doc/charm", ["charm.html", "sample.charmrc"]), - ("share/man/man1", ["charm.1"]), - ("share/man/man5", ["charmrc.5"]) ] ) -+ data_files = [ ("share/doc/charm", ["charm.html"]), -+ ("man/man1", ["charm.1"]), ++ data_files = [ ("man/man1", ["charm.1"]), + ("man/man5", ["charmrc.5"]) ] ) |