PKGNAMEPREFIX in japanese/p5-*

From: Tomohiro Hosaka <bokutin_at_bokut.in>
Date: Mon, 02 Aug 2021 06:56:59 UTC
Hello,

I have a question about PKGNAMEPREFIX in japanese/p5-*.

The following result makes ja- look unnecessary.

# pwd
/usr/ports
# ls -d 
{arabic,chinese,french,german,hebrew,hungarian,japanese,korean,russian,ukrainian,vietnamese}/*/ 
| grep p5 | perl -nlE 'chmop; printf "%-50s%s", $_, `grep PKGNAMEPREFIX 
$_/Makefile`||"\n"'

chinese/p5-Date-Chinese/                          PKGNAMEPREFIX=	p5-
chinese/p5-Encode-CNMap/                          PKGNAMEPREFIX=	p5-
chinese/p5-Encode-HanConvert/                     PKGNAMEPREFIX=	p5-
chinese/p5-Encode-HanExtra/                       PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-Han-PinYin/                     PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-Han-Utils/                      PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-HanDetect/                   PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Keywords/                    PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Numbers/                     PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Romanize-Pinyin/             PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Segment/                     PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Summarize/                   PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-TaBE/                        PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Toke/                        PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-WordSegmenter/               PKGNAMEPREFIX=	p5-
chinese/p5-Lingua-ZH-Wrap/                        PKGNAMEPREFIX=	p5-
chinese/p5-Text-Greeking-zh_TW/                   PKGNAMEPREFIX=	p5-
japanese/cp5022x-el/
japanese/p5-2chproxy/                             PKGNAMEPREFIX=	ja-p5-
japanese/p5-Date-Japanese-Era/                    
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Date-Japanese-Holiday/                
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-DateTime-Calendar-Japanese-Era/       
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-DateTime-Format-Japanese/             
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Encode-EUCJPASCII/                    PKGNAMEPREFIX=	ja-p5-
japanese/p5-Encode-EUCJPMS/                       
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Encode-ISO2022/                       
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Encode-JP-Emoji/                      
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Encode-JP-Mobile/                     
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-HTML-MobileJp/                        
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Jcode/                                
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Lingua-JA-Kana/                       
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Lingua-JA-Moji/                       
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Lingua-JA-Numbers/                    
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Lingua-JA-Regular-Unicode/            
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Lingua-JA-Romanize-Japanese/          PKGNAMEPREFIX=	p5-
japanese/p5-Lingua-JA-Summarize-Extract/          
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-MeCab/                                
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-nkf/                                  PKGNAMEPREFIX=	ja-p5-
japanese/p5-Number-Phone-JP/                      PKGNAMEPREFIX=	ja-p5-
japanese/p5-PDFJ/                                 
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Text-ChaSen/                          
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Text-Kakasi/                          
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Text-MeCab/                           
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-Unicode-Japanese/                     
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
japanese/p5-WWW-2ch/                              PKGNAMEPREFIX=	p5-
japanese/p5-WWW-MobileCarrierJP/                  
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-
korean/p5-Lingua-KO-Hangul-Util/                  PKGNAMEPREFIX=	p5-
korean/p5-Lingua-KO-Romanize-Hangul/              PKGNAMEPREFIX=	p5-
russian/p5-Convert-Cyrillic/                      PKGNAMEPREFIX=	p5-
russian/p5-Lingua-DetectCyrillic/                 PKGNAMEPREFIX=	p5-
russian/p5-Lingua-RU-Charset/                     PKGNAMEPREFIX=	p5-
russian/p5-Text-Hyphen-RU/                        PKGNAMEPREFIX=	p5-
russian/p5-XML-Parser-encodings/                  
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-


It would be useful if it was a PKGNAMEPREFIX to avoid conflicts, but 
that doesn't seem to be the case.
Instead, it seems to be an obstacle to natural guessing of the package 
name.

Shouldn't the useless LANG-CC(ja-) be removed?

Are there any rules that use LANG-CC?

I believe that compatibility and convention are important.
At the very least, I want to clear up any doubts I may have when 
creating future ports.

Thanks,