# Created by: Masahiro Teramoto # $FreeBSD$ PORTNAME= HTML-MobileJp PORTVERSION= 0.08 PORTREVISION= 1 CATEGORIES= japanese www perl5 MASTER_SITES= CPAN MAINTAINER= markun@onohara.to COMMENT= Generate mobile-jp html tags LICENSE= ART10 GPLv1+ LICENSE_COMB= dual RUN_DEPENDS= p5-HTML-Parser>=0:www/p5-HTML-Parser \ p5-Params-Validate>=0:devel/p5-Params-Validate \ p5-URI>=0:net/p5-URI BUILD_DEPENDS:= ${RUN_DEPENDS} TEST_DEPENDS= p5-Test-Base>0:devel/p5-Test-Base \ p5-YAML>=0:textproc/p5-YAML USES= perl5 USE_PERL5= configure .include PKGNAMEPREFIX:= ${PKGNAMEPREFIX}p5- .include ry'/>
aboutsummaryrefslogblamecommitdiffstats
blob: f6302d1fb9b3a36d61bccd77f8b579bb7d6ee14e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                       
                                     
                 







                                             
                                           







                                                                    
                                                             







                                                                                
                                                             







                                                                                 
--- components/metrics/metrics_log.cc.orig  2023-01-17 19:19:00 UTC
+++ components/metrics/metrics_log.cc
@@ -53,7 +53,7 @@
 #include "base/win/current_module.h"
 #endif
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
 #include "base/environment.h"
 #include "base/nix/xdg_util.h"
 #endif
@@ -123,7 +123,7 @@ void RecordCurrentTime(
   }
 }
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
 metrics::SystemProfileProto::OS::XdgSessionType ToProtoSessionType(
     base::nix::SessionType session_type) {
   switch (session_type) {
@@ -375,7 +375,7 @@ void MetricsLog::RecordCoreSystemProfile(
 // OperatingSystemVersion refers to the ChromeOS release version.
 #if BUILDFLAG(IS_CHROMEOS_ASH)
   os->set_kernel_version(base::SysInfo::KernelVersion());
-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
   // Linux operating system version is copied over into kernel version to be
   // consistent.
   os->set_kernel_version(base::SysInfo::OperatingSystemVersion());
@@ -392,7 +392,7 @@ void MetricsLog::RecordCoreSystemProfile(
   os->set_build_number(base::SysInfo::GetIOSBuildNumber());
 #endif
 
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   std::unique_ptr<base::Environment> env = base::Environment::Create();
   os->set_xdg_session_type(ToProtoSessionType(base::nix::GetSessionType(*env)));
   os->set_xdg_current_desktop(