Bug 203872

Summary: [NEW PORT] chinese/gydict: Command line tool of Yahoo! Dictionary
Product: Ports & Packages Reporter: Sean Chang <chihhsin>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed FIXED    
Severity: Affects Only Me CC: koobs, miwi, python
Priority: --- Keywords: feature, patch, patch-ready
Version: LatestFlags: koobs: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
shell archive of gydict
none
shell archive of gydict (updated)
none
portlint output of gydict
none
poudriere testport of gydict
none
shell archive of gydict (with secondary categories) koobs: maintainer-approval+

Description Sean Chang 2015-10-19 16:06:24 UTC
Created attachment 162209 [details]
shell archive of gydict

Re-implement deprecated chinese/ydict with Python3.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-10-20 03:26:34 UTC
@Sean, on initial review:

* Use USES=python:[run,<version>] to declare a dependency on Python. See /usr/ports/Mk/Uses/python.mk for more details
* You may want to consider a more specific primary category than 'chinese'. Something like <category> chinese python. Is the ports functionality for instance limited to the Chinese version of the Yahoo! dictionary?
* GH_PROJECT defaults to PORTNAME, and is unnecessary
* PLIST_FILES value shouldnt need a PREFIX

Please also run this port through QA (portlint, poudriere) to ensure it passes, fixing any reported issues, and then update the attachment here.
Comment 2 Sean Chang 2015-10-20 04:44:20 UTC
Created attachment 162224 [details]
shell archive of gydict (updated)

- Fix the dependency on Python
- Remove GH_PROJECT
- PLIST_FILES without PREFIX
Comment 3 Sean Chang 2015-10-20 04:54:18 UTC
(In reply to Kubilay Kocak from comment #1)

The functionality of the port is actually limited in Chinese to English and English to Chinese translation. And it parses the contents from Chinese version of Yahoo! Dictionary. So I believe put it in chinese category is appropriate.

This is my first time submitting a port. I'll do my best. Thank you for your comments.
Comment 4 Sean Chang 2015-10-20 04:59:19 UTC
Created attachment 162225 [details]
portlint output of gydict
Comment 5 Sean Chang 2015-10-20 05:34:26 UTC
Created attachment 162226 [details]
poudriere testport of gydict
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2015-10-20 05:47:10 UTC
@Sean, thanks for the update, though I would still recommend adding textproc and python as secondary categories.
Comment 7 Sean Chang 2015-10-20 06:04:31 UTC
Created attachment 162228 [details]
shell archive of gydict (with secondary categories)
Comment 8 Sean Chang 2015-10-25 17:27:27 UTC
Sorry for my ignorance, is there something I should do for this port to be committed now? I'm not familiar with the workflow after the flag (maintainer-approval+) set up.
Comment 9 Kubilay Kocak freebsd_committer freebsd_triage 2015-10-26 01:06:21 UTC
@Sean, nothing else needed from your side that I can see :)
Comment 10 commit-hook freebsd_committer freebsd_triage 2016-01-04 09:05:04 UTC
A commit references this bug:

Author: miwi
Date: Mon Jan  4 09:04:29 UTC 2016
New revision: 405224
URL: https://svnweb.freebsd.org/changeset/ports/405224

Log:
  A command line tool to do EN <-> CH translation, utilized by Yahoo! Dictionary.

  WWW: https://github.com/iamgyz/gydict

  PR:		203872
  Submitted by:	Chih-Hsin Chang <chihhsin@cs.nctu.edu.tw>

Changes:
  head/chinese/Makefile
  head/chinese/gydict/
  head/chinese/gydict/Makefile
  head/chinese/gydict/distinfo
  head/chinese/gydict/pkg-descr