On Fri, Apr 23, 2010 at 12:26:24AM +0100, Federico G. Schwindt wrote:
> Hi,
> 
>   While it might be good for emacs users, for the rest is a bit painful, so
> any objections to add a no_emacs pseudo flavour to exclude it?
> 
>   f.-
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/inputmethods/anthy/Makefile,v
> retrieving revision 1.9
> diff -N -u -p Makefile
> --- Makefile  16 Feb 2009 15:29:43 -0000      1.9
> +++ Makefile  22 Apr 2010 23:23:47 -0000
> @@ -1,20 +1,18 @@
>  # $OpenBSD: Makefile,v 1.9 2009/02/16 15:29:43 sthen Exp $
> +
>  COMMENT-main=        japanese input method
>  COMMENT-emacs=       emacs files for anthy
>  
>  CATEGORIES=  japanese inputmethods
>  
> -V=           8300
> -MULTI_PACKAGES=      -main -emacs
> -DISTNAME=    anthy-$V
> -PKGNAME-main=        anthy-$V
> -PKGNAME-emacs=       emacs-anthy-$V
> +DISTNAME=    anthy-8300
> +PKGNAME-main=        ${DISTNAME}
> +PKGNAME-emacs=       emacs-${DISTNAME}
>  
>  HOMEPAGE=    http://anthy.sourceforge.jp/
>  MASTER_SITES=        ${MASTER_SITE_SOURCEFORGE_JP:=anthy/22565/}
>  
>  # GPL, part LGPL
> -
>  PERMIT_PACKAGE_CDROM=        Yes
>  PERMIT_DISTFILES_CDROM=      Yes
>  PERMIT_PACKAGE_FTP=  Yes
> @@ -27,8 +25,6 @@ SHARED_LIBS +=      anthydic             0.0      # .1.0
>  SHARED_LIBS +=       anthy                0.0      # .1.0
>  SHARED_LIBS +=       anthyinput           0.0      # .0.0
>  
> -BUILD_DEPENDS=       ::editors/emacs21
> -
>  CONFIGURE_ENV=       CPPFLAGS='-I${LOCALBASE}/include'
>  CONFIGURE_ENV+=      LDFLAGS='-L${LOCALBASE}/lib'
>  CONFIGURE_ENV+=      SWIG=no
> @@ -36,6 +32,16 @@ CONFIGURE_ENV+=    SWIG=no
>  FAKE_FLAGS=  sysconfdir=$(PREFIX)/share/examples/anthy
>  
>  WANTLIB-main=        c m
> +
> +MULTI_PACKAGES = -main
> +PSEUDO_FLAVORS = no_emacs
> +FLAVOR ?=
> +
> +.if !${FLAVOR:L:Mno_emacs}
> +MULTI_PACKAGES += -emacs
> +.endif
> +
> +BUILD_DEPENDS-emacs =        ::editors/emacs21
  
  Ignore this bit, it should be BUILD_DEPENDS.
  Anyhow, any OKs on the idea?
 
  f.-

Reply via email to